On 25 Apr 2001 14:08:43 EDT, Katherine Richmond wrote:

>The reason I am re-doing the AppleScript is because I want the code to
>be somewhat cross-platform. I know it has to be tweaked a bit to run on
>both Windows and Mac, but at least most of it will remain the same. I
>would like the comment part to be cross-platform so that it could go to
>a Windows or OS 9 or OS X or Linux computer.  Currently, it will go to
>OS X. Does this mean I should use the comment field inside the jpeg? 

Most definitely. Yes. Now, the bulk of a JPEG files consists of tagged
chunks. It's just a matter of inserting a properly formatted comment
chunk, pretty much right after the start of the JPEG file. I'll look
into it later.

>I'm also going to need to make thumbnails of these images to view on the
>web. Could I create an action in Photoshop that is callable from Perl?
>The thumbnail size would be constant. 

If you can do it from Applescript, than it must be possible to do it rom
MacPerl with AppleEvents. Of course, then, you may forget about
cross-platform development.

You might check out Image::Magick. It's a free image manipulation
program with a scripting interface, including through a Perl module. You
can play with it online, through its website, at
<http://www.imagemagick.org/cristy/MagickStudio/scripts/MagickStudio.cgi>.

There are both standard source (= Unix) and Windows distributions. I
doubt if there's a Mac port, yet. I can't check, the server of
containing <http://pudge.net/mmp/>, the MacPerl Module Porters page,
hasn't been responding for hours.

Leonard Rosenthol has been working on an AppleScriptable Mac version of
ImageMagick the program, see <http://www.lazerware.com/imagemagick/>, so
it eventually might still happen.

And, oh yeah: the image quality produced by ImageMagick itself is of
professional quality, it's at least as good as Photoshop.

-- 
        Bart.

Reply via email to