Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
1

Action to resize to a dimension that fits within a set size?

Engaged ,
Jun 23, 2020 Jun 23, 2020

I'm struggling to figure out the best way to resize images so that they fit with set maximum parameters. I'm thinking an action is probably the best way to do this?

 

Let's say a maximum 1200px, max height of 900px.

 

I want to maintain the aspect ratio and don't mind if I end up with 1200w x 400h, or 800h x 900w as neither max dimension has been exceeded. I can do one or the other, but haven't figured out how best to do both. I can only imagine this is a common thing to want to do, but I'm probably using the wrong search terms or have fundamentally overlooked something which is obvious to others (but not to me!)

 

Thanks!

TOPICS
Actions and scripting
566
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jun 23, 2020 Jun 23, 2020

Yes, File > Automate > Fit Image is exactly what you need. I can be run in an action, and the action batched.

Translate
Adobe
Contributor ,
Jun 23, 2020 Jun 23, 2020

Just thinking out loud...

Can't you just use fit image and check don't enlarge depending on what exactly you need?

It will resize any image to be equal to or less than the parameters you provide in the fit image step of your action.

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jun 23, 2020 Jun 23, 2020

Sorry I should have been clearer. I'm trying to automate so that I can have a regular action to run on thousands of images.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 23, 2020 Jun 23, 2020
LATEST

Yes, File > Automate > Fit Image is exactly what you need. I can be run in an action, and the action batched.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines