GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Webmaster Q & Fuckin' A (https://gfy.com/forumdisplay.php?f=27)
-   -   Batch GIF resizing program (https://gfy.com/showthread.php?t=1173569)

PeR930 09-08-2015 04:49 PM

Batch GIF resizing program
 
What are some good programs that can batch resize animated GIFs? I have about 40K animated gifs I need to process.

j3rkules 09-08-2015 05:17 PM

I use Gif Movie Gear for all of my .GIF work, but FAIK it doesn't do batch and isn't free.

Back in the day, I used Jasc Image Robot for mass-resize on gif's for webpages. No idea if it's still around.

dobry_den 09-09-2015 11:18 PM

Install ImageMagick (ImageMagick: Convert, Edit, Or Compose Bitmap Images) and use it from the command line or search for the ImageMagick bindings/wrappers for your favorite language.

For example, for Node.js, there's gm : GraphicsMagick for node.js. Could write a simple loop that resizes your gifs locally.

Off the top of my head:

Code:

var gm = require('gm');

// Resize gif to a width of 100px (preserving aspect ratio)
// if it's wider than 100px
gm('example.gif').resize(100, null, '<');


PeR930 09-11-2015 04:59 PM

Thanks for the tips.

I was thinking about Imagemagick but it seems more complicated to setup, though cheapest option. I may have to try it out.

Does anybody have any other suggestions?

dobry_den 09-11-2015 05:31 PM

Yeah, if you're not a programmer, ImageMagick might be a bit too out of reach.

Have you had any luck with any of the programs that come up when you google "batch image resizer <windows/osx/linux>"?

PSDan 09-12-2015 12:58 PM

iRedSoft's BatchImage is a good one that I have used. Little pricey as graphics apps can be, but less than many. They have a free trial. Really easy to use, and lots of features. Produces great results.

Batch Image Processing - Simplifying Imaging Complexity

WorldOfPorn 12-28-2015 04:15 AM

ImageMagic.org.

tomash999 01-04-2016 08:11 AM

There are tutorials for ImageMagic on YouTube. Also Google "How to list image files in a directory" and you will have the 2nd part of the script above.

MassTuber 01-05-2016 11:08 AM

If you still need help with this, I'll write you a quick script for free. Feel free to PM me.

muthisdev 01-13-2016 12:29 AM

Quote:

Originally Posted by ViPeR_930 (Post 20574244)
What are some good programs that can batch resize animated GIFs? I have about 40K animated gifs I need to process.

Like others pointed out, imagemagick will do.

Example:
convert [INFILE] -gravity center -resize '400x300' -crop 400x300+0+0 +repage [OUTFILE]

This takes [INFILE] and makes a 400x300 file called [OUTFILE]

Should be easy to make a large batchfile that runs through your GIFs one by one.


All times are GMT -7. The time now is 11:54 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123