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
37
votes
11 answers

Show animated GIF

How do you display an animated GIF in a Java application?
SamSol
  • 2,885
  • 6
  • 37
  • 56
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,868
  • 1
  • 24
  • 21
34
votes
2 answers

How to save canvas animation as gif or webm?

i have written this function to capture each frame for the GIF but the output is very laggy and crashes when the data increases. Any suggestions ? Code : function createGifFromPng(list, framerate, fileName, gifScale) { …
Hashir Salam
  • 445
  • 1
  • 5
  • 7
32
votes
2 answers

how can you record your screen in a gif?

This is the example i am talking about, how can you do this?
fenec
  • 5,637
  • 10
  • 56
  • 82
29
votes
4 answers

Record/capture Android app to animated GIF

I would like to capture/record the behavior of my Android app, running on an emulator and make a GIF image out it. Just like this one -
RoCkDevstack
  • 3,517
  • 7
  • 34
  • 56
29
votes
4 answers

Restart an animated GIF from JavaScript without reloading the image

I am creating a slideshow of animations using animated GIFs. I'm crossfading from one animation to the next. The problem is: the only way I have discovered to ensure that the GIF starts animating from the first frame is to reload it each time it's…
nornagon
  • 15,393
  • 18
  • 71
  • 85
28
votes
2 answers

ArrayIndexOutOfBoundsException: 4096 while reading gif file

I am able to read png file. But getting ArrayIndexOutOfBoundsException: 4096 while reading gif file. byte[] fileData = imageFile.getFileData(); ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(fileData); RenderedImage image =…
Venkat Janyavula
  • 615
  • 2
  • 7
  • 10
28
votes
2 answers

Mac Terminal - Create animated gif from png files

I have a bunch of png files named as 1.png, 2.png, etc. and I want to create an animated gif image from them all. I haven't been successful in finding a solution for a terminal command that will convert these png files into a single animated…
StanLe
  • 5,037
  • 9
  • 38
  • 41
27
votes
4 answers

How to use Animated Gif in a delphi form

I think theres no native support to gif animated images. How is the best way? any free component that allow that? I was thinking in using a TImage and a ImageList + Timer, but I need to export each frame of the gif to a separated bmp file.
Vitim.us
  • 20,746
  • 15
  • 92
  • 109
27
votes
10 answers

How to display GIF in react-native android app?

I want to display a simple gif via URL in my Image tag in my android react-native app but when I start it no image is shown. The code as provided in the docs does work only for iOS but not for android:
Orlando
  • 1,576
  • 2
  • 15
  • 20
27
votes
5 answers

Animated gif to avi on linux

Is there any way to convert an animated gif to a video format (e.g. .avi) on Linux? I have already tried ffmpeg -i thegif.gif thevideo.avi but all I get is the first image of the video.
john-jones
  • 7,490
  • 18
  • 53
  • 86
27
votes
2 answers

Creating a large GIF with CGImageDestinationFinalize - running out of memory

I'm trying to fix a performance issue when creating GIFs with lots of frames. For example some GIFs could contain > 1200 frames. With my current code I run out of memory. I'm trying to figure out how to solve this; could this be done in batches? My…
klcjr89
  • 5,862
  • 10
  • 58
  • 91
26
votes
2 answers

C# Tell static GIFs apart from animated ones

I'll keep it short and simple; is there any way of telling static GIF images apart from animated ones? I'm using C#. Thanks
pastapockets
  • 1,088
  • 2
  • 13
  • 20
25
votes
1 answer

Is there a way to create one Gif image from multiple images in Java?

I am trying to set up a simple Java program that creates one single animated gif from multiple other images (jpg). Can anyone give me a hook on how to achieve this in Java? I already searched Google but couldn't find anything really helpful. Thank…
user2399314
  • 521
  • 3
  • 8
  • 9
25
votes
8 answers

How can you hide information inside a jpg or gif photo?

How can I write some information inside a photo file like jpg or gif without destroying the image? and of course without showing it on the photo since the whole idea is to send information in the file of photo undetected by anyone (to provide…
M. A. Kishawy
  • 5,001
  • 11
  • 47
  • 72