What's new
Photoshop Gurus Forum

Welcome to Photoshop Gurus forum. Register a free account today to become a member! It's completely free. Once signed in, you'll enjoy an ad-free experience and be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Image Size Script/Action - Change the longest dimension to 15,000px


DingusDude

Member
Messages
6
Likes
1
I want increase the size of a few hundred files to 15,000px on whatever dimension (either width or height) is the largest. As I type this it seems confusing, so let me try to explain better.

Say I have a file that's 2000px wide X 6000px high I want the action to change the height to 15,000px and the width would increase to whatever it needs to. But also, if I have a file that's landscape so it's 2000px high X 6000px wide I want the action to change the width to 15,000px and the height would increase to whatever it needs to. Hope that makes sense. The kicker is that the images are all different sizes and orientations so this seems like a much harder thing to make an action for. Oh, and lastly the resolution needs to remain as it is. Is this possible?


Thanks for the help!
 
Hi @DingusDude
For quite a few versions of Photoshop, there are conditional actions that can be taken, one of the type of tests is to test if it is landscape or not and you choose which action to take:
Screenshot 2024-11-01 at 10.01.27 AM.png

So you can differentiate between the two and choose the correct action. You also need to take into account if you have a square image as a corner case yet that is in the conditional list:
Screenshot 2024-11-01 at 10.03.05 AM.png

Hope this gets you started with building your Action
John Wheeler
 
Hi @DingusDude
For quite a few versions of Photoshop, there are conditional actions that can be taken, one of the type of tests is to test if it is landscape or not and you choose which action to take:
View attachment 147744

So you can differentiate between the two and choose the correct action. You also need to take into account if you have a square image as a corner case yet that is in the conditional list:
View attachment 147745

Hope this gets you started with building your Action
John Wheeler
Awesome, thank you! I did a test with a square image and it works with the "Else Play Action" just the same as a portrait image. So I just needed to make a landscape and portrait action, no need to make a square one.

But thanks a lot, I haven't noticed the conditional actions before!
 
In a batch action, you can use the File > Automate > Fit Image script. Simply enter 15,000 into both the width and height fields to scale the longest edge to 15K while proportionally scaling the other edge.

Perhaps even better, you can alternatively use the Image Processor or Image Processor Pro scripts which offer a built-in resize to fit option as well as taking care of the file format and other options.
 

Back
Top