Setting an image’s aspect ratio automatically in PS

CD
Posted By
Code Developer
Sep 24, 2004
Views
330
Replies
7
Status
Closed
I’m using PS7 under Windows and have a batch of images, none of which have an aspect ratio of 1:1. These all need to be modified to set the aspect ratio to 1:1.

What I need to do is set the canvas size of any image, whereby the shorter edge of the canvas is automatically increased to the same size as the longer edge – effectively setting the aspect ratio to 1:1.

Does anyone have an easy method of doing this so that the task can be used in a batch process?

Some images are ‘tall’ and some are ‘wide’, so PS would have to find the longer edge before setting the canvas size.

Regards,
Shaun.

MacBook Pro 16” Mockups 🔥

– in 4 materials (clay versions included)

– 12 scenes

– 48 MacBook Pro 16″ mockups

– 6000 x 4500 px

E
edjh
Sep 24, 2004
Code Developer wrote:
I’m using PS7 under Windows and have a batch of images, none of which have an aspect ratio of 1:1. These all need to be modified to set the aspect ratio to 1:1.

What I need to do is set the canvas size of any image, whereby the shorter edge of the canvas is automatically increased to the same size as the longer edge – effectively setting the aspect ratio to 1:1.

Does anyone have an easy method of doing this so that the task can be used in a batch process?

Some images are ‘tall’ and some are ‘wide’, so PS would have to find the longer edge before setting the canvas size.

Regards,
Shaun.

I would say use File>Automate>Fit Image but is your goal to crop the image or distort it?


Comic book sketches and artwork:
http://www.sover.net/~hannigan/edjh.html
Comics art for sale:
http://www.sover.net/~hannigan/batsale.html
CD
Code Developer
Sep 25, 2004
"edjh" wrote in message
Code Developer wrote:
I’m using PS7 under Windows and have a batch of images, none of which
have
an aspect ratio of 1:1. These all need to be modified to set the aspect ratio to 1:1.

What I need to do is set the canvas size of any image, whereby the
shorter
edge of the canvas is automatically increased to the same size as the
longer
edge – effectively setting the aspect ratio to 1:1.

Does anyone have an easy method of doing this so that the task can be
used
in a batch process?

Some images are ‘tall’ and some are ‘wide’, so PS would have to find the longer edge before setting the canvas size.

Regards,
Shaun.

I would say use File>Automate>Fit Image but is your goal to crop the image or distort it?

Neither – the fit image command only resizes the image to certain proportions while retaining the aspect ratio. It’s the aspect ratio that I want to change, from non-1:1 to 1:1.

My goal is to enlarge the canvas size, so that the original image is kept the same, but is now bordered by a blank area on both sides, making the new aspect ratio 1:1.

For example, say you have a rectangular image that is wider than it is tall. If you select menu option (Image | Canvas size…) and set the canvas height to the same as the current canvas width, you’ll see what I’m trying to do.

Hope this explains it properly! 🙂

Regards,
Shaun.
T
toby
Sep 25, 2004
"Code Developer" …
"edjh" wrote in message
Code Developer wrote:
I’m using PS7 under Windows and have a batch of images, none of which
have
an aspect ratio of 1:1. These all need to be modified to set the aspect ratio to 1:1. …
I would say use File>Automate>Fit Image but is your goal to crop the image or distort it?

… My goal is to enlarge the canvas size, so that the original image is kept the same, but is now bordered by a blank area on both sides, making the new aspect ratio 1:1. …

Using Fit Image followed by Canvas Size should do the trick.

Toby

Regards,
Shaun.
N
nomail
Sep 25, 2004
Code Developer wrote:

I would say use File>Automate>Fit Image but is your goal to crop the image or distort it?

Neither – the fit image command only resizes the image to certain proportions while retaining the aspect ratio. It’s the aspect ratio that I want to change, from non-1:1 to 1:1.

My goal is to enlarge the canvas size, so that the original image is kept the same, but is now bordered by a blank area on both sides, making the new aspect ratio 1:1.

For example, say you have a rectangular image that is wider than it is tall. If you select menu option (Image | Canvas size…) and set the canvas height to the same as the current canvas width, you’ll see what I’m trying to do.

Do all the images have the same largest size in pixels, for example, some are 400 x 600 pixels and the others are 600 x 400 pixels? If so, you can simply set canvas size to 600 x 600 pixels. If not, you can first use ‘fit image’ to make this so, and then set canvas size to 600 x 600 pixels (or whatever it needs to be).


Johan W. Elzenga johan<<at>>johanfoto.nl Editor / Photographer http://www.johanfoto.nl/
E
edjh
Sep 25, 2004
/snip/
Neither – the fit image command only resizes the image to certain proportions while retaining the aspect ratio. It’s the aspect ratio that I want to change, from non-1:1 to 1:1.

My goal is to enlarge the canvas size, so that the original image is kept the same, but is now bordered by a blank area on both sides, making the new aspect ratio 1:1.

For example, say you have a rectangular image that is wider than it is tall. If you select menu option (Image | Canvas size…) and set the canvas height to the same as the current canvas width, you’ll see what I’m trying to do.
Hope this explains it properly! 🙂

Regards,
Shaun.
How about an action like this: Make Background into layer, increase the canvas way oversize. Duplicate the layer. Transform duped layer, rotate 90 degrees. Ctrl-Click on One layer then with Shift on the rotated layer. Image>Crop. Trash the rotated layer. Fill transparent area with white or whatever.

That work?


Comic book sketches and artwork:
http://www.sover.net/~hannigan/edjh.html
Comics art for sale:
http://www.sover.net/~hannigan/batsale.html
CD
Code Developer
Sep 26, 2004
"edjh" wrote in message

How about an action like this: Make Background into layer, increase the canvas way oversize. Duplicate the layer. Transform duped layer, rotate 90 degrees. Ctrl-Click on One layer then with Shift on the rotated layer. Image>Crop. Trash the rotated layer. Fill transparent area with white or whatever.

That work?

Perfectly 🙂

Thanks for that.

Regards,
Shaun.
FA
Fred Athearn
Oct 2, 2004
On Sat, 25 Sep 2004 11:51:28 +0100, "Code Developer" wrote:

For example, say you have a rectangular image that is wider than it is tall. If you select menu option (Image | Canvas size…) and set the canvas height to the same as the current canvas width, you’ll see what I’m trying to do.

You need to make an acton that does the following:
START recording
hit "d" to set background to default white
image>canvas size…
tab twice to select width field and control c to copy
tab twice to select height field and control v to paste
enter to make change
STOP recording

Make a similar action for images that are higher than they are wide and set each action to a shortcut key. Then you can square up any image with one key stroke. You could also make actions that saved images to a directory after changing them. Perhaps you could sort the high and the wide images into two groups using drag and drop and then use automate>batch to fix each group all at once.

MacBook Pro 16” Mockups 🔥

– in 4 materials (clay versions included)

– 12 scenes

– 48 MacBook Pro 16″ mockups

– 6000 x 4500 px

Related Discussion Topics

Nice and short text about related topics in discussion sections