Re: Batch Resize, how to?
Jochen Issing wrote:
>> I am trying to organize my pictures, and I am looking for a batch
>> resizing program for my laptop. I was googling for a while, but I didnt
>> find anything, only one program for GIMP, but that didnt work. Any good
>> plugins for GIMP? Or command line tool?
> ever tried convert/mogrify from ImageMagick?
Alternative would be netpbm tools (script is called scalejpeg):
#!/bin/sh
TMPEXIF=$(mktemp /tmp/exifXXXXXX)
TMPJPEG=$(mktemp /tmp/exifXXXXXX)
jpegtopnm -exif=${TMPEXIF} $1 2>/dev/null | pnmscale 0.25 \
| pnmtojpeg -exif=${TMPEXIF} > $TMPJPEG \
&& mv $TMPJPEG $1
chmod a+r $1
rm -f $TMPEXIF
Use it like
for img in *.jpg ; do scalejpeg $img; done
Best,
Matej
--
Matej Cepl, http://www.ceplovi.cz/matej/blog/
GPG Finger: 89EF 4BC6 288A BF43 1BAB 25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
The difference between death and taxes is death doesn't get worse
every time Congress meets
-- Will Rogers
Reply to: