glide icon indicating copy to clipboard operation
glide copied to clipboard

How do play a GIF from a specified location?

Open lz421421 opened this issue 4 years ago • 6 comments

like this : gifDrawable.startFromFrame(int frameIndex);

lz421421 avatar May 11 '21 05:05 lz421421

i will work on this issue

AlirezaEiji191379 avatar May 12 '21 13:05 AlirezaEiji191379

i solved this issue and in the following hours i will push it in my repo!

AlirezaEiji191379 avatar May 12 '21 18:05 AlirezaEiji191379

i have forked and pull request for my changes for this issue the main think is that you must first use AnimatedGifDecoder for getting all the frame of a gif as an arraylist and encode theses gifs from the specified frame!

AlirezaEiji191379 avatar May 15 '21 18:05 AlirezaEiji191379

https://github.com/AlirezaEiji191379/glide/tree/issue_4565/third_party/gif_encoder/src/main/java/com/bumptech/glide/gifencoder/gif_frame

AlirezaEiji191379 avatar May 15 '21 18:05 AlirezaEiji191379

https://github.com/AlirezaEiji191379/glide/tree/issue_4565/third_party/gif_encoder/src/main/java/com/bumptech/glide/gifencoder/gif_frame

Thank you. It might be helpful. I need to study it

lz421421 avatar May 21 '21 01:05 lz421421

I am desperatly looking for the solution to resize gif files to 512x512 Glide is easy to us for static but it is confusing for animated gifs No artile or stackoverflow quetsion answers regarding this. IF you can give a idea about reszing the gif (centerfit with transparancy ). I dont wnat to display but save as gif file.

KishorJena avatar Mar 19 '22 07:03 KishorJena