• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: crop left half of image via script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: crop left half of image via script / iMagine Photo
      • From: Gert van Oss <email@hidden>
  • Prev by Date: Re: OT: Re: it's all true
  • Next by Date: Applescript for 7 year Installation!
  • Previous by thread: crop left half of image via script
  • Next by thread: Re: crop left half of image via script / iMagine Photo
  • Index(es):
    • Date
    • Thread