Script to crop square thumbnails
Script to crop square thumbnails
- Subject: Script to crop square thumbnails
- From: Chris Thomas <email@hidden>
- Date: Tue, 20 Feb 2001 12:26:35 +0000
Hi all,
I am a complete novice to Applescript, and though I am booked into a 3 day
Applescript course next month, I've got to come up with a Mac equivalent of
what I'm doing with Corel Photo-paint on the PC in the next few days :(
I need to convert my Photo-Paint script to Applescript ASAP, so any offers
of help or just tips in the right direction would be very gratefully
appreciated.
OK, this is what it does:
1. Opens all images (JPGs) in a folder in Photo-Paint (on the mac this could
be photoshop, fireworks or photo-paint)
2. Checks whether landscape or portrait, then reduces to max 350 pixels tall
or wide, depending on format
3. Saves those files in a folder called "images"
4. Then reduces each image further to max 150 pixels tall or wide, then
draws a square mask, centred on the image, 75 pixels wide. It then crops the
image to the mask
5. Saves the square thumbnails in a folder called "thumbs"
If anyone is interested I can post the CorelScript, but what I'm really
hoping is that someone can give me a headstart in converting it to
applescript...
thanks
Chris Thomas