In a pickle with simple resize script
In a pickle with simple resize script
- Subject: In a pickle with simple resize script
- From: Webmaster <email@hidden>
- Date: Tue, 18 Dec 2001 14:19:16 -0800
I started working on this script for one of my girlfriends x-mas presents.
We have a rather busy classifieds site which has photos. People email her
the photos and she resizes them and uploads them to the server.
So I started on a script that would automate this process. I got graphics
converter and started studying- this is my second script ever written.
The only two things I need to get it working are:
make this script run every time someone uploads a graphics to a specific
folder (the finished graphic will be saved in another folder) (are these
folder actions?)
Figure out the last part. I got as far as getting graphics converter to
open, resize the file and save it to the specified folder as a jpg. What I
can't do is get it to save it as the same file name it already has. It only
seems to work if I give it a filename. I tried "window 1" but that didn't
work. It just saves the first graphic as window 1, then any others in the
folder as the same name.
Here's the last part of the script:
set image dimension of window 1 to {hor, newVert}
save window 1 in "Shadow
fax:test: window 1" as JPEG wwwready "yes"
close window 1
end repeat
I appreciate any help, and she will love you for it :)
Thanks!
Jim