Skip to main content
Participating Frequently
February 19, 2021
Question

If Action and sqare

  • February 19, 2021
  • 3 replies
  • 1271 views
I need to resize different images and make them 1200 in height and 900 in width. I wrote an action:
if img is sqare - then play action - sqare if no then play action - if img is horizontal - then play horizontal
action, if no - then play vertical action. But i have some problems with vertical img. Sometimes they look
like a square, and sometimes they look like a vertical strip. For each of these options, I need to write
a separate action. But Photoshop does not allow you to determine where the vertical strip is, and where
the image is approaching in size to a square.
For this reason, 20% of images are not resized correctly. I would like to know if I can adjust 
the infelicity for almost square images?
 

 

This topic has been closed for replies.

3 replies

Kukurykus
Legend
February 20, 2021

Use respectively Resize Image and then Rezise Canvas.

JJMack
Community Expert
Community Expert
February 20, 2021

Yes Automate Fit Image followed by image canvas size but canvas size must be recorded so both the width and height setting are recorded.

JJMack
JJMack
Community Expert
Community Expert
February 19, 2021

If you do not want to crop your image to have a 4:3 Aspect Ratio and size the crop to 1200px by 900px image. If all you want is  your imags on a 1200px br 900px canvas.  A very simple action can do that.  You do  not need any conditional steps.  You just need two steps.   However, the steps need to be recorder so they will work correctly.   The step are simple but if you not careful recording one of them the step you recorder will not work the way you intended it to.  So I'll detail how you should record the two steps.  Create a new document 100px by 100px the record the action on.  

Step 1 Menu Image>Canvas Size... in the Dialog leave the anchor point centered, make sure relative is not checked set width 1200px height 900px

Step 2 Menu File>Automate>Fit Image ... in in the Dialog set width 1200px height 900px

Stop recording. In the action drag the Canvas size step below the Fit Image step.

If you recorded the Action in that sequence the Canvas size step would only record change  the width or height for one side would have been 1200px or 900px.  Both width and height must be recorded the step recording must change both width and height.

JJMack
Participating Frequently
February 20, 2021

I apologize I had to make a picture earlier. My action consists of: 1) image size 2) canvas size.
Photoshop itself determines the type of image. Vertical, horizontal or square.
I have a separate action for each type.
But I often have problems with vertical images. Sometimes they are not cropped correctly.
...because they are more like a square and need to write a separate action for them.
Unfortunately, I don't understand how to make Photoshop distinguish between two different vertical images.

Kukurykus
Legend
February 20, 2021

Make conditions, other for image originally wider than high and other for higher than wide.

c.pfaffenbichler
Community Expert
Community Expert
February 19, 2021

If I understand you correctly and you do not actually want to »cut off« at »square« but some other proportion then that would need a Script. 

But maybe I misunderstand … what exactly do you mean by 

»

But i have some problems with vertical img. Sometimes they look
like a square, and sometimes they look like a vertical strip. For each of these options, I need to write
a separate action.

«? 

Please post screenshots to clarify. 

Participating Frequently
February 20, 2021
Без_имени-2.jpg