Sunday, June 13, 2021

#1 2021-06-07 05:58:21 am

Marth
Member
Registered: 2009-06-19
Posts: 63

Photoshop set cropping mask, but do not crop

Hi there

Is there a way to set the dimensions for the cropping mask in photoshop. But I only want to set the width and height, but not crop the image.

Thank you in advance.
Marth

Offline

 

#2 2021-06-07 06:42:06 pm

Marc Anthony
Member
From:: Dallas, TX
Registered: 2006-04-27
Posts: 1026

Re: Photoshop set cropping mask, but do not crop

Hi. Yes, you can select a region by providing planar coordinates. This produces an arbitrary 2" x 3" selection.

Applescript:

tell application "Adobe Photoshop CS3"
   set settings's ruler units to pixel units
   set rez to 72
   tell (make document with properties {resolution:rez})
       set {theWidth, theHeight} to {2 * rez, 3 * rez}
       #region coordinates are {x, y} in order: UL, LL, LR, UR
       select region {{0, 0}, {0, theHeight}, {theWidth, theHeight}, {theWidth, 0}}
   end tell
   set settings's ruler units to inch units
end tell

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)