Questions tagged [gif]

25 questions
106
votes
10 answers

shell command to get pixel size of an image

Is there a shell command that returns the pixel size of an image? I'm trying to produce an animated gif starting from different gifs with different sizes using convert (e.g. convert -delay 50 1.gif 2.gif -loop 0 animated.gif). The problem is that…
blue
  • 2,812
  • 4
  • 17
  • 14
65
votes
7 answers

GIF screencasting; the UNIX way

To take a static screenshot of a selected part of my screen, I often use scrot with -s shot.png. This is great for adding illustrations to StackExchange posts. I even found this script to automatically upload such a screenshot to Imgur.com and put a…
22
votes
4 answers

webp animation to gif animation (cli)

I was surprised today to find apparently how difficult it is to go from a webp animation to gif animation. My GIMP 2.8.22 and ImageMagick 7.0.7-21 on linux 4.14.13-1-ARCH don't seem to support the format, and the only tool available in repos seem to…
lash
  • 729
  • 3
  • 8
  • 15
12
votes
3 answers

Find all animated gif files in a directory and its subdirectories

let's say that i've done a find for .gif files and got a bunch of files back. I now want to test them to see if they are animated gifs. Can i do this via the command line? I have uploaded a couple of examples in the following, in case you want to…
Max Williams
  • 1,067
  • 2
  • 16
  • 32
10
votes
4 answers

What viewers can play GIF animated images?

On Manjaro running Fluxbox, I don't seem to have an image viewer that can play animated GIF files. I think that Gwenview can and I have it on my KDE system. But on a Fluxbox system I would like to avoid too many KDE dependencies.
user32012
8
votes
2 answers

Remove nth frames of a gif (remove a frame every n frames)

I've recorded a .gif of the screen with ffmpeg. I've used gifsicle and imagemagick to compress it a bit, but it's still to big. My intent is making it small by removing, say, a frame every 2 frames, so that the total count of frames will be…
Vittorio Romeo
  • 195
  • 1
  • 7
6
votes
3 answers

Merge three .gif animations

I have 3 .gifs animations and I just want to merge them temporally. Say g1.gif contains images 1,2,3 sequenced as so g2.gif contains images 4,5,6 sequenced as so g3.gif contains images 7,8,9 sequenced as so I want a gif as follows g4.gif contains…
G. Benosa
  • 61
  • 1
  • 2
6
votes
1 answer

Converting asciinema output to gif

Can I convert a .json file; generated by a program like asciinema; into an animated .gif?
voices
  • 1,252
  • 3
  • 15
  • 30
3
votes
0 answers

ImageMagick: PNG to GIF: make any not completely transparent pixel solid

I'm trying to create a GIF animation from a set of transparent PNG images in various resolutions. When I -resize the edges are aliased. The background is probably quite predictable so I could make it just a solid color, but if possible I want…
panzi
  • 131
  • 3
3
votes
5 answers

Loop MP4 From Converted Animated Gif

How do I convert animated gifs to mp4s that loop? This command successfully converts the gifs to mp4s, but the loop doesn't appear to work: for i in *.gif; do ffmpeg -f gif -i "$i" -loop 0 "0output$i.mp4"; done When I play the resulting mp4s in…
whitewings
  • 2,377
  • 7
  • 32
  • 53
2
votes
1 answer

Merge a png on top of a gif with shell

I am trying to merge a png with a gif (put the png on top of the gif) and then have the result as a gif. I played around with convert, but cannot quite get it to work the way I need it. I have tried these commands so far: convert layer1.png…
milehigh
  • 23
  • 2
2
votes
1 answer

ImageMagick refused to convert the animated GIF and killed the process silently due to CPU

I tried with these solutions below, but unsuccessfully: ImageMagick convert problem, command killed or silently exits Using disk for processing of huge images ImageMagick convert out of memory ImageMagick using more than 2GB of memory to convert…
Oo'-
  • 233
  • 1
  • 7
2
votes
0 answers

Create small high-quality GIF/APNG from a bunch of PNGs

I have 50 PNGs (like those ones here) and I would like to create a GIF (or APNG) animation from it that approximately retains the quality and is small. What I'm doing so far is to rescale and throw optipng at them: for file in step*.png; do \ …
Nico Schlömer
  • 589
  • 3
  • 13
2
votes
1 answer

In XFCE, how do I set an animated GIF as a desktop background?

This should be a simple task, but I can't figure out a way to do this!
Aaron Franke
  • 905
  • 3
  • 13
  • 24
2
votes
1 answer

Creating a GIF animation from PNG files while constraining GIF size

Is there a way, perhaps with ffmpeg or convert, to constrain the size of a GIF created by stitching PNG files? This answer (Creating a GIF animation from PNG files) does not address this, and apparently the instructions are out of date.
zadrozny
  • 337
  • 3
  • 9
1
2