Re: Image thumbnails question
Re: Image thumbnails question
- Subject: Re: Image thumbnails question
- From: Michelle Steiner <email@hidden>
- Date: Tue, 23 Sep 2003 10:17:00 -0700
On Tuesday, September 23, 2003, at 08:26 AM, Bill Planey wrote:
I will use AS to facilitate this automatically... Does anyone have any
recommendations for what program I should use for the thumbnails?
iPhoto?
InDesign? FileMaker Pro? ...or can Photoshop handle this?
I have had very good results with Graphic Converter. Here is a script
I use to set picture sizes. Just change vertTarget and horizTarget to
the values you want.
--Michelle
property horizTarget : 640
property vertTarget : 480
set the folderToProcess to choose folder
tell application "Finder"
set the photoList to (the files of the folderToProcess)
end tell
repeat with photo in the photoList
tell application "GraphicConverter"
open the photo as alias
set the imageDims to the image dimension of window 1
set scaleFactor to my setScaleFactor(imageDims)
scale window 1 horizontal scaleFactor vertical scaleFactor
save window 1 as JPEG with wwwready without makeCopy
close window 1
end tell
end repeat
on setScaleFactor(imageDims)
set the scaleFactor to 1
set the horiz to item 1 of the imageDims
set the vert to item 2 of the imageDims
if the horiz is greater than the vert then
if the horiz is greater than horizTarget then set the scaleFactor to
horizTarget / horiz
else
if the vert is greater than vertTarget then set the scaleFactor to
vertTarget / vert
end if
return the scaleFactor
end setScaleFactor
--
"Beware the march of ideas."
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.