Try
tifftopnm - to convert your tiffs to .pnm files
pnmscale - to resize as you like
pnmtotiff - to convert back to .tif (better yet pnmtopng) :-)
===========================================================================
Here are some examples, then I put it all into one step at the end.
Be aware that I have not tested any of this - it may need some tweaking...
CONVERT TIF to PNM
for f in *.tif; do tifftopnm $f > `ls $f | cut -f 1 -d "."`.pnm; done
THUMBNAIL
for f in *.tif; do tifftopnm $f > `ls $f | cut -f 1 -d "."`.pnm; done
CONVERT PNM to TIF
for f in *.ppm; do pnmtotiff -none $f > `ls $f | cut -f 1 -d "."`.tif; done
CONVERT PNM to PNG (May I suggest the PNG file format)
for f in *.ppm; do pnmtopng -none $f > `ls $f | cut -f 1 -d "."`.png; done
===========================================================================
DO EVERYTHING AT ONCE!
for f in *.tif; do
tifftopnm $f |
pnmscale -width 115 -height 150 |
pnmtopng > `ls $f |
cut -f 1 -d "."`.png;
done
You may have to consult the man pages and make some decisions about
aspect ratio but this should point you in a useful direction.
Also, check out the many pnm* and ppm* for lots of good stuff.
Hope this helps,
--
L. Jack Reese [EMAIL PROTECTED] __o
,---,___`----. http://rivit.cs.byu.edu/reese _'\<,_
`-(*)-----(*)' My hardware runs better without Windows! ...(*)/ (*)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hi,
I have over 1800 images that need to be processed. In short, these images
are in TIFF format, I want to open them, resize them, from 2048X2668
pixels to 115X150 and save (same filename different extension) them as a
medium quality JPEG thumbnail. I would prefer to somehow create a script
so I can let the computer process the images automatically. I have been
playing around with the script-fu tool but can't seem to get a script to
do what I want. I am completely new to gimp scripting and the whole
"scheme of things" (any bowie fans out there =). Maybe the perl-fu is
what I need? All the images are on CDs.
thanks for any help you can offer, chao
steve
==============================================================================
Stephen Hitchner http://www.algae.dhs.org
[EMAIL PROTECTED] coming soon http://www.greenalgae.net
--
L. Jack Reese [EMAIL PROTECTED] __o
,---,___`----. http://rivit.cs.byu.edu/reese _'\<,_
`-(*)-----(*)' My hardware runs better without Windows! ...(*)/ (*)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~