• 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: Cropping an image in one direction.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Cropping an image in one direction. (From: "Chris Tangora" <email@hidden>)

  • Prev by Date: Cropping an image in one direction.
  • Next by Date: Re: clear a menu
  • Previous by thread: Cropping an image in one direction.
  • Next by thread: crasher bug in "choose url"
  • Index(es):
    • Date
    • Thread