Re: how to script resizing in Graphic Converter
Re: how to script resizing in Graphic Converter
- Subject: Re: how to script resizing in Graphic Converter
- From: "Marc K. Myers" <email@hidden>
- Date: Fri, 06 Jul 2001 15:06:47 -0400
- Organization: [very little]
>
Date: 06 Jul 2001 09:19:14 EDT
>
From: email@hidden (Katherine Richmond)
>
Subject: how to script resizing in Graphic Converter
>
To: email@hidden, email@hidden
>
>
--- Simon Forster wrote:
>
I have a script which uses GraphicConverter to open up an image, resize it,
>
etc.
>
--- end of quote ---
>
>
Simon,
>
>
Would you please share the script that you use to resize an image? I looked in
>
the GraphicConverter dictionary and saw only a scale command. What I need is a
>
resize to make my thumbnails all 110 pixels wide. Can you help with this?
You need to get the "image dimension" of your image's window, which
returns a list of horizontal and vertical dimensions in pixels. Divide
110 by the horizontal dimension to get the reduction factor. Multiply
the vertical dimension by the reduction factor. The rounded result is
your new vertical dimension. 110 is your new horizontal dimension. Set
the image dimension to a list made up of the new x and y dimensions and
you've got your thumbnails.
Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com"
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074
[7/6/01 3:05:59 PM]