Replies: 1 comment 3 replies
-
Adding "If then else" "for loop" etc might be quite a feat to add. I would look for "outside" solutions by sorting the images first, then start the processing. So sorting the image by size and move them to a sub-folder and then process them with the correct macro, there are various options of course. Some ideas:
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Let me start by saying how wonderful PD is! It has transformed batch editing images for use on my Wife’s e-commerce website, keep up the excellent work.
I’ve successfully created several macros that do the relatively simple task of cropping to the extremities of an image, then resizing the image before finally resizing the canvas to allow for a standardised border.
My challenge is that the source images are not always equal in width/height. The recorded Macro(s) fix the width & height to constant values, causing stretch/skew issues on ‘non-square’ images.
I’ve been working around this by creating multiple macros by category, editing the width/height in notepad to account for ratio maintenance.
Is it possible to pull in the width & height of the image after the crop, then use these variables to apply the resizing? My wish is as follows:
—————————
Get width w
Get height h
Get Ratio (of w:h) r
If w > h then w = 450px & h = (w X r) else
h = 450px & w = (h X r)
—————————
This would reduce my number of required macros significantly.
Side question:
Happy to post the side question as a new discussion if preferred.
Look forward to any responses you have.
Sean 😊
Beta Was this translation helpful? Give feedback.
All reactions