You can use scale to easily scale an image by a given factor, but you can also use -resize-fit-height or -resize-fit-width to scale to respective sizes. ![]() Gifsicle -resize 300x200 -i animation.gif > animation-clipped.gif Gifsicle -resize-fit-height 100 -i animation.gif > animation-100px.gif # Scale to a given height with unspecified width Gifsicle -resize-fit-width 300 -i animation.gif > animation-300px.gif # Scale to a given width with unspecified height The simplest way to create an animation is to give more than one input file, which gifsicle will combine to create a flipbook animation: gifsicle pic1.gif pic2.gif pic3.gif > animation. Gifsicle -scale 0.5 -i animation.gif > animation-smaller.gif gif gifsicle is good at creating and manipulating GIF animations. That's nice but you want to keep the GIF animated, right? Here are a few easy methods for resizing a GIF with gifsicle: If you try to use ImageMagick's basic resize functionality, you'll end up getting the first frame output to the correct size. The simplest way to create an animation is to give more than one input file, which gifsicle will combine to create a flipbook'' animation: gifsicle pic1.gif pic2.gif pic3.gif > animation. To make a dithered black-and-white version of 'anim.gif': gifsicle -dither -use-colbw anim.gif > anim-bw.gif To overlay one GIF atop another - producing a one-frame output GIF that looks like the superposition of the two inputs - use gifsicle twice: gifsicle bottom.gif top.gif gifsicle -U '1' > result. I showed you how to merge and optimize animated GIFs with gifsicle, and now let's look at resizing animated GIFs. gif gifsicle is good at creating and manipulating GIF animations. This purple background Id like to make transparent. ![]() My favorite image manipulation utility, ImageMagick, doesn't seem to be the best utility for animated GIFs - another utility called gifsicle is as good as it gets. Making background transparent using gifsicle I was recently turned onto gifsicle by another question, for making backgrounds transparent. GIFs are kind of a video file, because they have frames, but there's no real control over how they play or loop. Animated GIFs are images but you can't really handle them link other types of images, like PNGs or JPEGs or even WebPs.
0 Comments
Leave a Reply. |