Views
393
Replies
5
Status
Closed
Hello again
Here’s today’s conundrum. I’m trying to run a script that will resample an image size depending on whether the length or the width is greater.
So for example, i have several images that are roughly 50 (wide) x 30 ( high). I want the script to make them all 50 x 30, without distorting and without randomly clipping data from all around. The original sizes aren’t all in that exact 5:3 ratio. One image may be 52 x 29, while another is 49 x 32.
So the ideal script would say something like,
? if the width divided by height is greater than 5/3, then resize the image (constrain proportions) and make the height = 30, then crop the width down to 50.
? if the width divided by height is less than 5/3, then resize the image ( constrain proportions) and make the width = 50, then crop the height down to 30.
ie each time it’s only cropping one side, and there is no distortion. Does that make sense? Has anyone had any success with something like that? Or is there a plug-in that anyone knows about?
TIA
Figo
Here’s today’s conundrum. I’m trying to run a script that will resample an image size depending on whether the length or the width is greater.
So for example, i have several images that are roughly 50 (wide) x 30 ( high). I want the script to make them all 50 x 30, without distorting and without randomly clipping data from all around. The original sizes aren’t all in that exact 5:3 ratio. One image may be 52 x 29, while another is 49 x 32.
So the ideal script would say something like,
? if the width divided by height is greater than 5/3, then resize the image (constrain proportions) and make the height = 30, then crop the width down to 50.
? if the width divided by height is less than 5/3, then resize the image ( constrain proportions) and make the width = 50, then crop the height down to 30.
ie each time it’s only cropping one side, and there is no distortion. Does that make sense? Has anyone had any success with something like that? Or is there a plug-in that anyone knows about?
TIA
Figo
Must-have mockup pack for every graphic designer 🔥🔥🔥
Easy-to-use drag-n-drop Photoshop scene creator with more than 2800 items.