Questions tagged [animated-gif]

An animated .GIF image is an image file which displays an animation.

This tag should be used in questions asking for help using an animated GIF in their applications, modifying an animated GIF in code, or reading pixels from an animated GIF in code.

Useful links

Pages where animated GIFs can be created

1436 questions
13
votes
1 answer

Animated .GIFs not working in IE 10

I have created some animated .gifs which work well in Firefox and Chrome but not in IE 10. Is there any way of fixing this? Just try looking at the below image in various browsers.
user1358852
13
votes
3 answers

Fastest way to create animated gifs from mp4

I have to batch process a very high number(200,000+) of short mp4s(less then 10s) into animated gifs. I think I have tried every possible command line way of doing it, but it still takes too long to produce quality gifs. Currently I use ffmpeg to…
stinkypyper
  • 2,008
  • 4
  • 22
  • 29
12
votes
3 answers

Using Glide, how can I go over each frame of GifDrawable, as Bitmap?

Background In a live wallpaper, I have a Canvas instance that I wish to draw GIF/WEBP content into, which was loaded via Glide. The reason I wish to do it with Glide, is that it provides some advantages over a solution I've found in the past for the…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
12
votes
1 answer

How can I embed the new GIFV format on my webpage?

Normally I would embed a gif like so. Although I get an error that the image could not be loaded. I'm just wondering what mark up I will need to use so that I can display the GIFV. GIFV is created by…
Jack
  • 2,891
  • 11
  • 48
  • 65
12
votes
5 answers

How to make animated GIFs work from Android WebView

Animated GIF images rendered by Android's WebView do not seem to animate. Has anyone figured out how to make them work? I'm testing on an N1 with 2.1-u1. None of the web settings available seem applicable.
John in MD
  • 2,141
  • 5
  • 25
  • 36
12
votes
1 answer

imagemagick convert individual frame delay in gif

I have a directory full of images I want to turn into a gif. Each file name follows this pattern: _.gif Example: 00001_1432.gif I can create the gif animation with imagemagick: convert -loop 0 -delay 10…
Ilia Choly
  • 18,070
  • 14
  • 92
  • 160
12
votes
1 answer

Java System Tray Icon on MacOS 10.7.4 not showing animated gif

I'm trying to get an animated gif to appear in the MACOS System Tray using Java. I have PNG icons showing corretly, but as soon as I try and set the icon to an animated gif (so I can show a spinning timer) it goes blank and shows nothing in the…
dgildeh
  • 175
  • 9
12
votes
3 answers

Showing a .gif animation in QLabel

I would like to show a .gif animation in a QLabel widget, alongside text. The following code won't work: self.status_txt = QtGui.QLabel('Loading... ') as the image won't animate. I tried achiving it by using a QMovie…
iTayb
  • 12,373
  • 24
  • 81
  • 135
11
votes
3 answers

Embedding Matplotlib Animations in Python (google colab notebook)

I am trying to show a gif file in google's colab.research. I was able to save the file in the directory with the following path name /content/BrowniamMotion.gif but I don't know how to show this GIF in my notebook to present. The code to generate…
user4933
  • 1,485
  • 3
  • 24
  • 42
11
votes
4 answers

Extract key frames from GIF using Python

I want to compress a GIF image by extracting 15 frames from the GIF that preferably should be distinct. I'm using Python and Pillow library and I didn't find any way to get the number of frames a GIF has in the Pillow docs. Neither did I find how…
Kirill Cherepanov
  • 927
  • 1
  • 10
  • 20
11
votes
0 answers

Quality and file size issues with animated gifs and PIL/Pillow?

I've created a short animation using Python, Pillow (a fork of PIL), and cairo. The current animation is 334 frames. I can save a single frame using the following code... frame_images[0].save('test_frame.gif') and I will get a 34 kb file. I have…
neelshiv
  • 6,125
  • 6
  • 21
  • 35
11
votes
1 answer

How do I create an animated gif in Python using Wand?

The instructions are simple enough in the Wand docs for reading a sequenced image (e.g. animated gif, icon file, etc.): >>> from wand.image import Image >>> with Image(filename='sequence-animation.gif') as image: ... len(image.sequence) ...but…
Dominick
  • 437
  • 5
  • 16
11
votes
1 answer

How to extract frames from an animated gif using javascript?

Does anyone have a simple solution to extract frames from a gif using javascript? I know some online tools like Ezgif and Gif-explode, but I'm wondering if this is also possible using just javascript?
user4991434
11
votes
2 answers

lower fps when using ffmpeg to convert mp4 to gif

I am using ffmpeg to convert high quality videos to gif, most of the videos are 60fps and over 720p, but when I use the code below, to convert the video to gif, I get very low fps for the gif…
Muhia NJoroge
  • 539
  • 1
  • 5
  • 16
11
votes
2 answers

Delphi TGIFImage animation issue with some GIF viewers

I have discovered that animated GIFs created using Delphi 2009's TGIFImage sometimes doesn't play correctly in some GIF viewers. The problem is that the animation is restarted prematurely. Consider the following example: program…
Andreas Rejbrand
  • 105,602
  • 8
  • 282
  • 384