Crop to a square?

L
Posted By
Laurent
Feb 23, 2004
Views
284
Replies
5
Status
Closed
Hi,

I’m trying to create an action that would crop an image to a square that would be as wide as the image width.
I can figure out how to select 100% width and constrain proportions with the cropping tool.
I’m using PS7. Any ideas?

Thanks!

Laurent

How to Improve Photoshop Performance

Learn how to optimize Photoshop for maximum speed, troubleshoot common issues, and keep your projects organized so that you can work faster than ever before!

BV
Branko Vukelic
Feb 23, 2004
Laurent wrote:

Hi,

I’m trying to create an action that would crop an image to a square that would be as wide as the image width.
I can figure out how to select 100% width and constrain proportions with the cropping tool.
I’m using PS7. Any ideas?

Thanks!

Laurent

Why would you want to do such a thing?

If dimensions of the files you’re going to process vary, ther’s no way you can make such an action.

Crop tool accepts only length values and not percentage. OTOH, you can set the ruler value to percentage by right-clicking the ruler (which also sets the default value system of the action) and then use SHIFT to constrain the selection to a rectangle, but guess what: PS7 action will not make a rectangle with every file. Actions in PS7 use the top-left and bottom-right coordinates of the file according to the ruler setup that was active during the recording process. So if you set up the ruler to show percentage, and cropped using 100% width and a rectangular shape, thus getting, for example, 65,4% height at recording time, you’d get 65,4% height on every image you process with the action. AFAIK, there’s no workaround for this.

If images you’re gonna process are all the same size and orientation, then you’d be better off resizing canvas than using the crop tool…

You might also consider using ImageReady for your task. You can read about that in the Manual. "Automating Tasks">"Recording Actions">"Recording Image
Size Options (ImageReady)". It’s not quite what you’re asking for, but you might get new ideas… Hope this helps.


Branko Vukelic ()
CC
chuck clark
Feb 23, 2004
You most likely will need to write a script to do this. Your are not able to
make any sort of logic decisions with actions, like if the width is greater than the height, rotate image 90 degrees.
for windows, see
http://www.adobe.com/support/downloads/detail.jsp?ftpID=1536

for mac, see
http://www.adobe.com/support/downloads/detail.jsp?ftpID=1535

there is an adobe forum just for ‘photoshop scripting’ , see here http://www.adobe.com/support/forums/main.html

chuck

Laurent wrote:

Hi,

I’m trying to create an action that would crop an image to a square that would be as wide as the image width.
I can figure out how to select 100% width and constrain proportions with the cropping tool.
I’m using PS7. Any ideas?

Thanks!

Laurent

JC
John Cruise
Feb 23, 2004
chuck clark wrote:

You most likely will need to write a script to do this. Your are not able to
make any sort of logic decisions with actions, like if the width is greater than the height, rotate image 90 degrees. for windows, see http://www.adobe.com/support/downloads/detail.jsp?ftpID=1536
for mac, see
http://www.adobe.com/support/downloads/detail.jsp?ftpID=1535
there is an adobe forum just for ‘photoshop scripting’ , see here http://www.adobe.com/support/forums/main.html

chuck

Laurent wrote:

Hi,

I’m trying to create an action that would crop an image to a square that would be as wide as the image width.
I can figure out how to select 100% width and constrain proportions with the
cropping tool.
I’m using PS7. Any ideas?

Thanks!

Laurent
I am pretty sure that PS 7 will do it, but I know that in PS CS, select the crop tool or hit "C" on the keyboard, look at the tool menu above and manually enter in the values (i.e. 8in for width, and 8in for hight). This will force your crop selection to stay proportionate. If you want to keep that setting, you can then add it to the "Tools Preset" window. Try it on PS7. I am sure that it works the same way.
BV
Branko Vukelic
Feb 23, 2004
John Cruise wrote:

chuck clark wrote:

You most likely will need to write a script to do this. Your are not able to
make any sort of logic decisions with actions, like if the width is greater than the height, rotate image 90 degrees. for windows, see http://www.adobe.com/support/downloads/detail.jsp?ftpID=1536
for mac, see
http://www.adobe.com/support/downloads/detail.jsp?ftpID=1535
there is an adobe forum just for ‘photoshop scripting’ , see here http://www.adobe.com/support/forums/main.html

chuck

Laurent wrote:

Hi,

I’m trying to create an action that would crop an image to a square
that >> would be as wide as the image width.
I can figure out how to select 100% width and constrain proportions with the
cropping tool.
I’m using PS7. Any ideas?

Thanks!

Laurent
I am pretty sure that PS 7 will do it, but I know that in PS CS, select the crop tool or hit "C" on the keyboard, look at the tool menu above and manually enter in the values (i.e. 8in for width, and 8in for hight). This will force your crop selection to stay proportionate. If you want to keep that setting, you can then add it to the "Tools Preset" window. Try it on PS7. I am sure that it works the same way.

Yes it does, but it crops to exactly 8in by 8in… Also the coordinates of the top-left corner remain the same so it doesn’t work with every image you throw at it…

As Chuck pointed out, scripting seems to be the only way to automate such a task.


Branko Vukelic ()
M
me
Feb 24, 2004
Laurent wrote:
Hi,

I’m trying to create an action that would crop an image to a square that would be as wide as the image width.
I can figure out how to select 100% width and constrain proportions with the cropping tool.
I’m using PS7. Any ideas?

Thanks!

Laurent

What are the image size range which you have to work with?

What is the output size? application, final output requirements?

I have done something like this with an action.

I would be resizing then crop etc.

r

long time ago someone did have an action in making a square picture on a web site Ill have to go back through my notes.

How to Improve Photoshop Performance

Learn how to optimize Photoshop for maximum speed, troubleshoot common issues, and keep your projects organized so that you can work faster than ever before!

Related Discussion Topics

Nice and short text about related topics in discussion sections