Skip to main content
Participant
May 4, 2022
Question

Position a crop box at 120 px and 500 px on the x and y axis

  • May 4, 2022
  • 2 replies
  • 604 views

How can I position a crop box at x and y pixels on an image? Is there a way to specify the position of a crop box? I'd like to position a 500 px * 500 px crop box at exactly 120 px on the x axis and 500 px on the y axis. How do I do this?

This topic has been closed for replies.

2 replies

c.pfaffenbichler
Community Expert
Community Expert
May 4, 2022

Wouldn’t using Image > Canvas Size twice work just as well? 

Stephen Marsh
Community Expert
Community Expert
May 4, 2022

@c.pfaffenbichler wrote:

Wouldn’t using Image > Canvas Size twice work just as well? 


 

What about the X120px and Y500px upper left anchor point?

c.pfaffenbichler
Community Expert
Community Expert
May 4, 2022

One could use »Relative« first. 

Edit: Sorry, forgot to set the Reference Point accordingly. 

Stephen Marsh
Community Expert
Community Expert
May 4, 2022

* Double click on the upper left intersection point of the X & Y rulers, to reset the origin point to zero (if it was elsewhere).

 

* Double click on an X or Y ruler to bring up the ruler preferences, set the ruler to PIXELS as the unit.

 

* Bring up the info panel (F8) window

 

* Move the crop tool or the rectangular marquee (selection) tool to 120 px and 500 px and ensure that the width and height is 500 px.

 

Holding down the spacebar allows you to reposition as you "draw", then release to continue "drawing".

 

Another method is to simply draw a marquee selection at any size/position, then press CMD/CTRL T to transform the selection and set the anchor point to the upper left and then type in the X + Y + Width + Height. If the position/dimension fields are not set to pixels, you can contextual/right click in the field and change the unit to pixels or just type in say 500px to override the current units. Then use the Image > Crop menu command.

 

Edit: I once created an interactive crop script to crop to a desired square size here:

 

 
So you would type in 500 and the crop box would be centered on the canvas, the script has the selection transform active, so then all you need to do is type in the X and Y position and press the tick or hit OK and the crop is then performed. An action could do the same.