Re: Scripting graphics manipulations, improving speed overGraphicConverter 4
Re: Scripting graphics manipulations, improving speed overGraphicConverter 4
- Subject: Re: Scripting graphics manipulations, improving speed overGraphicConverter 4
- From: Jeremy Reichman <email@hidden>
- Date: Wed, 21 Mar 2001 19:25:42 -0500
I have not used "convert" mode in GraphicConverter 4, as it does not seem to
be supported via AppleScript. (I'm assuming you mean the equivalent of the
"Convert" command in the File menu ... )
I have infintessimally sped up my script by removing some if's and other
stuff from the GraphicConverter tell block. Instead, I just send GC the
commands it really needs to process.
I do not have PreFabPlayer, so I haven't tried that.
I have iView but didn't choose it for this project and I forgot why. I know
the newest version (for which they want an upgrade fee) has an AppleScript
command that invokes their built-in HTML cataloging function.
Based on another thread in this list, I tracked down ImageMagick/AE. (I had
vaguely remembered finding it earlier, but inexplicably didn't follow that
up.) It took me a while to find, but I got it and have done some fiddling.
ImageMagick/AE seems almost perfect, and does appear much faster than
successively opening thousands of images in GC. (The quality and other
characteristics of the resulting thumbnail previews I've generated of test
images has been quite acceptable.) However, I want to get information about
an image (such width and height), so that I can have the script make
decisions and re-use that info. Though it lets me get the information in
what seems like an AppleScript record, I'm unable to extract data from that
record it returns. Until I can do that, I can't throw it in as a 1-for-1
replacement to GC4 in my thumbnailing subroutine.
For example, if I try (based on the ImageMagick/AE samples, and even going
so far as to specify "imageInfo as record"):
---
tell application "ImageMagick/AE"
open "Macintosh HD:ImageMagick_AE Folder:Testfiles:leila.psd"
set imageRef to the result
copy (info for imageRef) to imageInfo
close imageRef
end tell
width of (imageInfo as record)
---
imageInfo by itself returns: {type:"PSD", width:174, height:352, xRes:0.0,
yRes:0.0, depth:8}
---
With that script, I get an error that AS can't get the width of the record.
Therefore, having the info locked in the record isn't helpful. Any ideas on
what I'm doing wrong? (I've not used records much, but according to the
ASLG, I'm pretty sure I'm doing the right thing to get data out of the
record structure.)
on 3/20/01 8:51 PM, Bryan at email@hidden wrote:
>
Have your tried "convert" mode in GC? you have to run PreFabPlayer on it but
>
it
>
runs batch, so it
>
doesn't open the images.
>
>
Alternatively try iView MediaPro.
>
>
Bryan Kaufman
--
Jeremy Reichman, aka "Jaharmi"
Software Specialist III (Mac OS) / Instructor
Customer Support Services
Information and Technology Services
Rochester Institute of Technology
Rochester, New York, USA
World Wide Web <
http://www.rit.edu/~jjracc/>
Electronic mail <
mailto:email@hidden>
Tip - The ITS computer buying guide is on-line at:
<
http://www.rit.edu/~750www/Buying_Guide/>