question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Downscaling / resizing not supported for animated GIFs / WebPs

See original GitHub issue

GIF and JPG are in recyclerview

I want to do fitXY but gif is small --> git

cap

recyclerview item layout

<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">
    <com.facebook.drawee.view.SimpleDraweeView
        android:id="@+id/image"
        android:layout_width="match_parent"
        android:layout_height="170dp"
        app:actualImageScaleType="fitXY"/>
</android.support.constraint.ConstraintLayout>

recyclerview adapter

@Override
    public void onBindViewHolder(GallaryAdapter.ViewHolder holder, int position) {
        final CharacterData data = characterData.get(position);
        if(data.getType() == CharacterData.TYPE_GIF){
            holder.imageView.setController(Fresco.newDraweeControllerBuilder()
                    .setUri(data.getUri())
                    .setAutoPlayAnimations(true)
                    .build());
        }else{
            holder.imageView.setImageURI(data.getUri());
        }
    }

Thank you for your help.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
s1riuscommented, May 15, 2018

Thanks a lot, I will try.

1reaction
s1riuscommented, May 15, 2018

@oprisnik I want to implement the “resizing for Webp” feature, Could you give us some idea or suggestions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Supported formats and limitations · Cloudflare Image ...
Image Resizing can: Resize and generate JPEG and PNG images, and optionally AVIF or WebP. Save animations as GIF or animated WebP. Support...
Read more >
Trending Plugins tagged as downsize | Figma Community
Create and export animated GIFs, WebPs, WebMs or MP4 videos from selected layers. ... Supports compressing/exporting multiple sizes and formats per layer.
Read more >
animated gif images not working after resize - General Support
Guessing this is the downscaled version. Haven't tried these with ProcessWire, but I've seen image resizing destroy animations in GIF files ...
Read more >
Images done right: Web graphics, good to the last byte
All brands of pixels and DPR; SVG magic; Evil Martians' Big Image Compression Cookbook; Animations on the web.
Read more >
animated GIF resize - Ezgif
Animated GIF resizer. Select image. Upload image from your computer: Or paste image URL: Supported image types: GIF, JPG, PNG, BMP, WebP, APNG,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found