Questions tagged [gif]

GIF (Graphics Interchange Format) is an image file format associated with ".gif" file extension. Use this tag for questions involving this specific format.

GIF (Graphics Interchange Format) is an image file format associated with ".gif" file extension.

The GIF file format has many limitations compared to modern image files, including a limited color palette and lossless compression, which makes it a poor choice for storing photos. Despite the limitations, GIFs remain popular due to animation capabilities and widespread decoder support in web browsers.

3188 questions
602
votes
14 answers

What are the different usecases of PNG vs. GIF vs. JPEG vs. SVG?

When should certain image file types be used when building websites or interfaces, etc? What are their points of strength and weakness? I know that PNG & GIF are lossless, while JPEG is lossy. But what is the main difference between PNG & GIF? Why…
Faruz
  • 9,909
  • 10
  • 48
  • 66
446
votes
13 answers

Is there a way to add an animated GIF to a Markdown file?

I want to add this animated GIF to a GitHub flavored markdown file. If it can't be done in GitHub, is it possible to do it in another version of Markdown?
Zaynaib Giwa
  • 5,366
  • 7
  • 21
  • 26
183
votes
19 answers

Adding gif image in an ImageView in android

I added an animated gif image in an imageView. I am not able to view it as a gif image. No animation is there. It's appearing just as a still image. I would like to know how can i show it as a gif image.
Kamalone
  • 4,045
  • 5
  • 40
  • 64
110
votes
16 answers

Animated GIF in IE stopping

Does anyone know a work around to make animated GIF's continue to be animated after you click a link or submit a form on the page your on in IE? This works fine in other browsers. Thanks.
mattt
  • 1,471
  • 4
  • 16
  • 24
85
votes
4 answers

Can you control GIF animation with Javascript?

Is it possible to use javascript to control which frame of a GIF image is showing and/or stop the animation. I want to be able to load a GIF with several frames and only show one of them. I know I could do it with lots of separate images, but if I…
Logan
  • 1,117
  • 2
  • 10
  • 10
84
votes
6 answers

When to interlace an image?

As a general rule of thumb when is it appropriate to make a gif interlaced, a png interlaced and a jpeg progressive? Especially when publishing the image on the web.
Timo Huovinen
  • 53,325
  • 33
  • 152
  • 143
74
votes
14 answers

Show GIF file with Glide (image loading and caching library)

I try to show a GIF image as loading placeholder in image view - with Glide Library: Glide.with(context) .load(ImageUrl()) .placeholder(R.drawable.loading2) .asGif() .crossFade() .into(image); I try to show this file…
mahdi
  • 16,257
  • 15
  • 52
  • 73
65
votes
2 answers

How to extract frames from a GIF file preserving frame dimensions

I have the following GIF image file: I want to extract its frames (using PGM output format) using this imagemagick command: convert brocoli.gif out%05d.pgm But each frame has a different size. How can I extract its frames while preserving the…
Joe Cabezas
  • 1,397
  • 3
  • 15
  • 21
56
votes
14 answers

Stop a gif animation onload, on mouseover start the activation

I have a page with a lot of GIFs.
denislexic
  • 10,786
  • 23
  • 84
  • 128
55
votes
6 answers

Animated GIF in HTML5 canvas

In HTML5, how can I draw easily (no too much complex code please) an animated GIF in a canvas that works (with drawImage only first frame is shown in the canvas)
julio
  • 551
  • 1
  • 4
  • 3
51
votes
3 answers

How to animate GIFs in HTML document?

I have the following tag in a static HTML document. This is an animated gif image, but it does not move After I set its src attribute to point to a .gif file (i.e. foo.gif), the GIF appears as a static (or…
MaryBaker
  • 667
  • 1
  • 5
  • 8
47
votes
6 answers

How to create an animated GIF from JPEGs in Android (development)

I am looking for a simple way to create an animated GIF in a native Android application. The source files should be JPEG (from camera or what ever) and the output should be saved as GIF on the device. I do not want to know how to play animations or…
Mischa
  • 1,073
  • 2
  • 13
  • 23
42
votes
1 answer

How to CREATE a transparent gif (or png) with PIL (python-imaging)

Trying to create a transparent gif with PIL. So far I have this: from PIL import Image img = Image.new('RGBA', (100, 100), (255, 0, 0, 0)) img.save("test.gif", "GIF", transparency=0) Everything I've found so far refers to manipulating…
gratz
  • 1,506
  • 3
  • 16
  • 34
41
votes
1 answer

How do developers produce iOS Simulator animated .gifs?

I often see this a lot on GitHub. How can I reproduce this animated .gif effect? https://github.com/autresphere/ASMediaFocusManager
mosca1337
  • 2,409
  • 3
  • 24
  • 27
38
votes
4 answers

Countdown Timer Image GIF in Email

I recently received an emailer from Onnit Labs that included a Countdown Module Timer inside the emailer using a gif image. The emailer can be viewed here: https://www.onnit.com/emails/lastchance-historic/ The Image can be seen here: I looked into…
alvaram
  • 405
  • 1
  • 5
  • 7
1
2 3
99 100