Re: OFF: TIFF or PICT to thumbnail - direct conversion
Re: OFF: TIFF or PICT to thumbnail - direct conversion
- Subject: Re: OFF: TIFF or PICT to thumbnail - direct conversion
- From: Michelle Steiner <email@hidden>
- Date: Tue, 2 Apr 2002 18:15:19 -0700
here is one way; you'll need to change horizTarget and vertTarget to the
values you need.
--Michelle
set horizTarget to 640
set vertTarget to 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
--change following line as needed.
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 640 then set the scaleFactor to
horizTarget / horiz
else
if the vert is greater than 480 then set the scaleFactor to
vertTarget / vert
end if
return the scaleFactor
end setScaleFactor
On Tuesday, April 2, 2002, at 06:07 PM, Peter Bunn wrote:
Is there a minimally scriptable way to convert TIFF or PICT images
directly to GIF or JPEG thumbnails?
The project I'm working on would be greatly aided if there was.
We're not human beings having a spiritual experience.
We're spiritual beings having a human experience.
_______________________________________________
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.