This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > PainShop Pro Scripting > July 2007 > Crop Tool - Position in bottom right hand corner
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Crop Tool - Position in bottom right hand corner
|
|
|
| When I use the Crop Tool, I can choose "0" for both Left and Top and my Crop
Tool preset goes to the top left hand corner.
Is there a quick/easy way to make it go to the bottom right hand corner? I
tried "0" for both Right and Bottom but this did not help. I know you can
drag it to the bottom right hand corner, but sometimes I do not get it
exactly there.
Help.
Thanks very much.
PS - The pics I use will vary in dimensions and will not always be square or
the same size each time.
| |
| Fred Hiltz 2007-07-02, 10:19 pm |
| ©® wrote:
> When I use the Crop Tool, I can choose "0" for both Left and
> Top and my Crop Tool preset goes to the top left hand corner.
> Is there a quick/easy way to make it go to the bottom right
> hand corner? I tried "0" for both Right and Bottom but this
> did not help. I know you can drag it to the bottom right hand
> corner, but sometimes I do not get it exactly there.
> Help.
> Thanks very much.
> PS - The pics I use will vary in dimensions and will not
> always be square or the same size each time.
Please see the replies to your identical post in the PSP X group.
There is no need to double-post, as most of us read most of the
groups.
--
Fred Hiltz, fhiltz at yahoo dot com
| |
|
| Thanks!
I do realise that there are different forums but was asking here for a
Script solution ;-)
| |
| Conal O'Neill 2007-07-02, 10:19 pm |
|
"©®" <n0ne@n0ne.com> wrote in message news:46882ecd_3@cnews...
> When I use the Crop Tool, I can choose "0" for both Left and Top and my
> Crop
> Tool preset goes to the top left hand corner.
> Is there a quick/easy way to make it go to the bottom right hand corner? I
> tried "0" for both Right and Bottom but this did not help. I know you can
> drag it to the bottom right hand corner, but sometimes I do not get it
> exactly there.
> Help.
> Thanks very much.
> PS - The pics I use will vary in dimensions and will not always be square
> or the same size each time.
>
Example - Image dimensions 800 x 600
Right = Image width (in this case 800)
Bottom - Image height (in this case 600)
If you want to script this, you will need to get this information first (see
sample code below by Sol Adler) before adding the crop command
# Get Image Width/Height
Result = App.Do( Environment, 'ReturnImageInfo',)
IW = Result['Width']
IH = Result['Height']
then just add the crop command and place the IW and IH variables in your
crop rectangle:
# Crop
App.Do( Environment, 'Crop', {
'CropRect': ((10,10), IW-10, IH-10),
'Mode': App.Constants.CropMode.Custom,
'Units': App.Constants.CropUnits.Pixels,
'SelectedArea': False,
'PrintWidth': -1,
'PrintHeight': -1,
'GeneralSettings': {
'ExecutionMode': App.Constants.ExecutionMode.Default,
'AutoActionMode': App.Constants.AutoActionMode.Match,
'Version': ((11,2,0),1)
}
})
The above code will crop any image by 10 pixels on all 4 sides. Change it to
your desired crop by changing the 'CropRect'.
| |
| Spandex Rutabaga 2007-07-03, 3:18 am |
| "©®" wrote:
>
> Thanks!
> I do realise that there are different forums but was asking here for a
> Script solution ;-)
Next time say so. It avoids us having to guess your intent.
Just drag the crop rectangle past the corner and release it
to let it bounce back. If you want to make life complicated
use Conal's script suggestion based on first retrieving the
size of the image.
|
|
|
| | Copyright 2003 - 2009 forum4designers.com Software forum Computer Hardware reviews |
|