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
16
votes
3 answers

Python: Converting GIF frames to PNG

I'm very new to python, trying to use it to split the frames of a GIF into PNG images. # Using this GIF: http://www.videogamesprites.net/FinalFantasy1/Party/Before/Fighter-Front.gif from PIL import Image im =…
Joseph
  • 12,678
  • 19
  • 76
  • 115
16
votes
4 answers

How to play gif in android from url?

I want to play animated gif from url in android app like imgur app. Imagur is superb and very fast. I am loading gif with webview but its not up to the mark.
user3606902
  • 829
  • 1
  • 10
  • 25
16
votes
3 answers

PHP - Create simple animated GIF from two JPEG images?

Does anyone know if it's possible to generate an animated GIF from two different JPEG files, displaying one image for x seconds then the other, and so on..? Any advice appreciated. Thanks.
Dan
  • 4,068
  • 10
  • 41
  • 51
15
votes
3 answers

Do tags in html support animated gifs?

I am making a photo upload site, and began to wonder: Do tags in html support animated gifs, and can they actually show animated gifs in their image? Also, if tags don't support animated gifs, is there a way to implement that cross…
H Bellamy
  • 22,405
  • 23
  • 76
  • 114
15
votes
4 answers

Android: How do a display a large animated gif given a url?

Suppose I have the URL for large animated gif and I wanted to make a youtube like activity that displays the animation in a streaming way. How do I stream in the image? get it do display with actual animation? I know ImageView is not the answer…
rndmcnlly
  • 1,588
  • 1
  • 9
  • 18
15
votes
2 answers

iOS 11 animated gif display in UIImageView

I thought iOS 11 was supposed to bring, at long last, native support for animated gifs? But I tried this, and I didn't see any animation: let im = UIImage(named:"wireframe.gif")! let iv = UIImageView(image:im) iv.animationImages = [im] // didn't…
matt
  • 515,959
  • 87
  • 875
  • 1,141
15
votes
3 answers

IE7/IE8 and frozen animated gifs

I'm quite sure this is an old problem. This is how i render my animated gif: " /> This is how I'm…
Arnis Lapsa
  • 45,880
  • 29
  • 115
  • 195
14
votes
1 answer

Why do animated gif images take so long to load?

Why do simple animated gif images take so long to load before they start animating smoothly in a browser, even when the file size is smaller than the cumulative file size of other non-animated image files that have already loaded on the same page?
Simpleton
  • 6,285
  • 11
  • 53
  • 87
14
votes
4 answers

Extracting single frames from an animated GIF to canvas

I need to load all the frames of an animated GIF to an HTML5 canvas. Please note, I don't want to "play" the animated (someone asked this before), all I want is to extract all the frames to use them as single images.
Omiod
  • 11,285
  • 11
  • 53
  • 59
14
votes
3 answers

Generating an animated GIF in Python

I'm trying to generate an animated GIF using images2gif.py (pastebin to the most recent verson : bit.ly/XMMn5h ). I'm using this Python script: __author__ = 'Robert' from images2gif import writeGif from PIL import Image import os file_names =…
Harry
  • 256
  • 1
  • 2
  • 13
13
votes
3 answers

Exporting canvas as GIF/PNG in p5js

I use Atom Editor. I want to make 20 seconds GIF with my canvas. saveFrames() has a limitation(I guess). It enables to save .png files to short gifs(3-5 seconds), even if I type saveFrames("aa","png",15,22); I discovered CCapture.js but I could not…
Zeki Akyol
  • 193
  • 1
  • 1
  • 10
13
votes
3 answers

Animated loading gif image as a repeated background

I would like to find something like this: (source: opengraphicdesign.com) But that it can be a repeated background on an html element and looks like a whole block. For example, a 80x80 gif as a repeated background in a 400x400 DIV that would give…
Pablo
  • 5,897
  • 7
  • 34
  • 51
13
votes
3 answers

Using an Animated Gif as Ground Overlays in G. Maps v2

I am currently using Google Maps and would like to use an animated Gif as Overlay in my app. This is really frustrating as it seems very easy on iOS version of the app, SO I really want to achieve something cool. The result I would like to see is on…
Waza_Be
  • 39,407
  • 49
  • 186
  • 260
13
votes
4 answers

Does hiding an animated GIF with CSS conserve browser resources?

I have a gif image. It gets shown only on very specific events, not too often. By default, the gif's html tag is hidden using display: none. Now, we all know gifs can be very tough on a computer's cpu. I don't know how to benchmark or check…
Badr Hari
  • 8,114
  • 18
  • 67
  • 100
13
votes
3 answers

How to split animated GIF into an array of UIImages?

I need to do some processing on the individual frames of an animated GIF so I need to be able to split an animated GIF, do some processing and merge it back again into a GIF. I know how to create an animated gif from separate UIImages but I don't…
Ramin Afshar
  • 989
  • 2
  • 18
  • 34