I have 20 logos with different sizes. I would like them all to fit (maintaining proportions) into certain size – let's say limit both width and height by 100px. So that they can be later redistributed into a grid by another script, which will look ok.
Example: Original 2048*1024 should scale down proportionally to 100*50.
How can I do this?