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.

2868 questions
591
votes
13 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,691
  • 10
  • 44
  • 65
319
votes
9 answers

Is there a way to add a gif to a Markdown file?

I want to add this 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
  • 3,954
  • 7
  • 17
  • 25
149
votes
18 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
  • 3,675
  • 4
  • 38
  • 62
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
78
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
  • 46,329
  • 33
  • 128
  • 127
69
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
  • 957
  • 2
  • 8
  • 10
64
votes
13 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
  • 15,691
  • 15
  • 47
  • 69
58
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,178
  • 3
  • 13
  • 18
48
votes
5 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
  • 481
  • 1
  • 4
  • 3
46
votes
13 answers

Stop a gif animation onload, on mouseover start the activation

I have a page with a lot of GIFs.
denislexic
  • 8,778
  • 19
  • 69
  • 112
45
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,045
  • 2
  • 13
  • 23
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,339
  • 3
  • 21
  • 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
36
votes
10 answers

Show animated GIF

How do you display an animated GIF in a Java application?
SamSol
  • 2,823
  • 5
  • 35
  • 54
35
votes
17 answers

Which format for small website images? GIF or PNG?

When doing small icons, header graphics and the like for websites, is it better to use GIFs or PNGs? Obviously if transparency effects are required, then PNGs are definitely the way to go, and for larger, more photographic images I'd use JPEGs - …
David Heggie
  • 2,802
  • 1
  • 22
  • 20
1
2 3
99 100