Resizing GIFs
There are many tools – online and offline – to resize a GIF, some more user-friendly than the other. But what if you want to shrink a whole collection of GIFs? Then a fancy tool is suddenly not so useful anymore.
gifsicle
Fortunately, there is gifsicle: a command-line tool for creating and editing GIFs. And while their website may look like it was straight out of the '90s, the tool does what it promises. In this article I will only discuss the functionality to change the format, but feel free to check the manual to see all the possibilities.
The above is one line of PowerShell to scale a GIF while keeping the ratio. The width becomes 250 pixels, the height is then determined automatically. In this line I assume that both gifsicle and the input file are in the same folder and the script is also executed from there.
Now let's expand the PowerShell script a bit so we can tackle all the GIFs from a given folder. And why not ensure that we can enter the length of the longest side – width or height?
Now just release this script on your folder with memes and reaction GIFs …