Skip to main content
bartonlew
Legend
January 30, 2019
Answered

problem reassigning dimension in New Action

  • January 30, 2019
  • 2 replies
  • 356 views

I am trying to create an Action for exporting files which I'll then use as a Batch Export.  The problem I am having is that the images are not being output with the specified dimension I am entering for one of the sides.  In this case, I want all images to have a width of 4000px.  In a prior action I created, I wanted the images all to have a height of 1400px.  In this newer action, all the images have a height of 1400px.  Here are the steps I am creating:

1.  Record New Action

2.  Flatten image

3.  File>Automate>Fit Image

4.  Type in 4000 for width; Hit OK

5.  File>Export>Save for Web (Legacy)

6.  Check Embed Color Profile and Convert to sRGB

7.  Hit Save; navigate to folder and save without renaming

8.  Exit without Saving

9.  Stop recording Action

1400px is recorded as the image's height for every image I do this for, which is the height dimension of the prior Action.  The width is different for each image while preserving aspect ratio.  Why does my typing in 4000px for width in the new Action not override these dimensions?  Why is it that File>Automate>Fit Image does not show a new number when typing in your desired width/height for the other dimension?  Thanks.

This topic has been closed for replies.
Correct answer JJMack

Fit image resizes images in constrained fashion that is the image aspect ratio will be preserved so the image will not be distorted. Fit image has two settings. Width and Height. if you want to resize all images to have a height 1400 you would use

Fit image width 99999999 height 1400 images will be resized to fit but the height can not exceed 1400 if you want all image to be resized 4000px in  width  you would use Fit image width 4000 height 99999999

2 replies

JJMack
Community Expert
JJMackCommunity ExpertCorrect answer
Community Expert
January 31, 2019

Fit image resizes images in constrained fashion that is the image aspect ratio will be preserved so the image will not be distorted. Fit image has two settings. Width and Height. if you want to resize all images to have a height 1400 you would use

Fit image width 99999999 height 1400 images will be resized to fit but the height can not exceed 1400 if you want all image to be resized 4000px in  width  you would use Fit image width 4000 height 99999999

JJMack
bartonlew
bartonlewAuthor
Legend
January 31, 2019

This worked - thank you!!!

bartonlew
bartonlewAuthor
Legend
January 30, 2019

Okay. I created yet another Action and entered 4000 for the height (not width) to see what would happen (per my prior message, it's the width that needs to be 4000px but I wasn't able to get the Action to make that adjustment).  Now, in the "Save for Web (Legacy)" dialog box, the width has been changed to 4000px.  When running the Action on another file, it also saves correctly, with a width of 4000px.  I'm glad to know I have a solution (I have a deadline tonight to export over 60 files), but it would be nice to know what's happening here.  I don't understand the logic of this process. 

D Fosse
Community Expert
Community Expert
January 30, 2019

The basic principle is pretty simple. Fit Image creates a "virtual" rectangle at your specified pixel dimensions. It then scales down the image so that it fits inside this rectangle.

Whether the width or the height is the limiting side depends on the image.

Don't Enlarge is normally checked so that you don't get any upsampling, but that obviously means smaller images that don't "hit the walls" remain unchanged.