Re: crop left half of image via script
Re: crop left half of image via script
- Subject: Re: crop left half of image via script
- From: Kevin Meaney <email@hidden>
- Date: Tue, 14 Jun 2005 11:25:43 +0100
Grt
You can use iMagine Photo (free) to crop any part of an image, Image Events will only crop to the centre.
set chosenFile to choose file
tell application "iMagine Photo"
set thisImporter to import graphic chosenFile
set theprops to the properties of thisImporter
set {x, y, theWidth, theHeight} to the natural bounds of theprops
set the source rectangle of thisImporter to {theWidth div 2, 0, theWidth, theHeight}
tell thisImporter to make exporter with properties {export file type:"JPEG", export folder location:path to desktop folder, export file name:(file name of theprops), export custom icon:true, export compression quality:high, export resolution:{72.0, 72.0}}
export thisImporter
close thisImporter
end tell
http://www.yvs.eu.com/imagine.html
Kevin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden