hi all
Whats the best way to geberate thumbnail images? I've got around 500 jpegs that I'd like to have a thumbnail image for each but I can't seem to find a decent app that does it.
Thanks
Weed
I use a script to convert my camera's .jpg images to .png icons, script uses the following:
Jhead for stripping the EXIF thumbnail (much quicker if it exists),
filecomment for insterting camera info into the filecomment,
GFXcon for scaling images that don't have an EXIF thumbnail,
PNGTool for converting the EXIF/scaled image to .png icons,
DoIcon for changing the icon to a project, with the tool set to multiview, cyberwindow, or whatever,
IconHelper has a tttofile program that takes the remaining EXIF information and dumps it into the .jpg files tooltypes (for easy reading).
This is the script:
s:thumbs
echo "Generating EXIF, thumbnail, and file comment script"
list #?.jpg lformat "echo *"stripping EXIF data and thumbnail for %N*"*Njhead -v -nofinfo *"%N*" >*"t:%N.tt*"*njhead -c *"%N*" >*"t:%M.cmt*"*njhead -st *"t:%n*" *"%n*"*nfilecomment *"%N*" <*"t:%M.cmt*"" >ram:s
echo "Generating manual (slow) icon generation script"
list #?.jpg lformat "if not exists *"t:%N*"*Necho *"File T:%N doesnt exist!*"*Necho *"converting to IFF*"*Nnewconvert *"%P%N*" ram:temp.iff*necho *"Scaling..*"*Ngfxcon ram:temp.iff to *"T:%N*" FORMAT ilbm 24BIT BOXFITALL 128 128*Nendif" >>ram:s
echo "Generating thumbnail to icon conversionon script"
list #?.jpg lformat "if not exists *"%N.info*"*Necho *"Creating icon for %N*"*Npngtool *"t:%N*" s=2 *"%N.info*"*Nelse*Necho *"icon for %N already exists*"*nendif" >>ram:s
echo "Generating icon default tool script"
list #?.jpg lformat "if exists *"%N.info*"*Necho *"Changing %N.info default tool and type*"*Ndoicon *"%N.info*" newtype=project*ndoicon *"%N.info*" newdt=sys:utilities/picshow/picshow*Nelse*NEcho *"%N.info doesnt exist!*"*Nendif" >>ram:s
echo "Generating EXIF tooltype insertion script"
list #?.jpg lformat "if exists *"%N.info*"*Necho *"Adding EXIF data to %N*"*Nfiletott *"t:%N.tt*" to *"%N.info*"*Nelse*Necho *"%N.info doest exist!*"*nendif" >>ram:s
echo "Generating cleanup script"
list #?.jpg lformat "echo *"cleaning up after %N*"*Ndelete *"t:%N.tt*"*ndelete *"T:%N*"*ndelete *"t:%M.cmt*"" >>ram:s
echo "Executing final script"
execute ram:s
echo "Finishing cleanup, goodbye and enjoy your icons!"
delete ram:s
Do a "protect s:thumbs +s" on it, and it'll work as a cli command, putting .png icons in whatever directory you happen to be in. Also, I put an IconX script in an AmigaDock with this:
.KEY directory
cd ""
requestchoice "Thumbnail options" " images.*nLeave comments of files?*n(Amiga FS only)" "_Yes|No" >env:thumbopts
if $thumbopts eq "0"
thumbsnocmt
endif
if $thumbopts eq "1"
thumbs
endif
This way, I just drag whatever directory I copied my cameras pictures to, and it automagically makes png icon thumbnails out of 'em! :-D