Re: Cropping an image in one direction.
Re: Cropping an image in one direction.
- Subject: Re: Cropping an image in one direction.
- From: Emmanuel <email@hidden>
- Date: Wed, 12 Jul 2006 20:43:07 +0200
At 2:21 PM -0400 7/12/06, Chris Tangora wrote:
Is there any way to crop or pad an image in a specific direction?
Say crop to (0, 1800, 0, 3500) would crop the left 1800x3500 pixels
of an image?
If you use Smile, any thing of that kind (including resizing) is a
few lines of script.
For instance, here you would do:
--------------------
set w to make new graphic window
set w's pagewidth to 1800 -- the sizes of the wanted final result
set w's pageheight to 3500
BeginFigure(w) -- start using w to draw
DrawImage(theImagePath, (1800-3500, 0), "") -- import the image
shifted to the left
EndFigure(w)
save w in file SomeNewPath.png -- (or jpeg or whatever extension you
want including pdf)
--------------------
Emmanuel
_______________________________________________
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