Resizing based on height alone
Posted: 2015-05-13T15:21:50-07:00
Hey guys,
I'm doing some work batch converting svgs to pngs and as part of this, I would like to set a hard cap on the height of converted image while the width could vary.
Is this possible from command line or would I not be able to do so.
Right now I'm doing
But I'd like to say "I want the new height of the image to 600 and maintain that ratio with the width"
So that if an image is 100x100 its new size would be 600x600 and if an image is 100x200 its converted size would be 600x1200.
Thanks!
Drew
I'm doing some work batch converting svgs to pngs and as part of this, I would like to set a hard cap on the height of converted image while the width could vary.
Is this possible from command line or would I not be able to do so.
Right now I'm doing
Code: Select all
for /r %%v in (*.svg) do convert "%%v" "%%~nv.png"
So that if an image is 100x100 its new size would be 600x600 and if an image is 100x200 its converted size would be 600x1200.
Thanks!
Drew