[ale] Mass image cropping

Brian Pitts brian at polibyte.com
Tue Mar 11 15:52:55 EDT 2008


Jim Popovitch wrote:
> Anyone know of a good (command line ;-) )  way to crop 100 pictures to
> the same size?
> 
> Something like this would be too cool:
> 
>   gimp -nogui -autocrop -offset 28x30 -newsize 100x100
> -preserve-file-names *.png

As suggested by others, ImageMagick (or GraphicsMagick) is just the 
thing for for performing a single operation, like cropping, on multiple 
files. If you need to perform multiple operations on a single file (e.g. 
splitting into tiles), it can be much faster to use a library that lets 
you read the file only once than repeatedly invoke ImageMagick.

-Brian


More information about the Ale mailing list