I have a lot of various sized rectangular images. I would like to keep them centered, do not change their size and only add white space, so every image would be square. After that, I want to convert that square to PNG. I tried few commands in ImageMagick, but couldn't get expected result.
That command gives me almost expected result, however, SVG gets blurry:
magick mogrify *.svg -resize '128x128'-gravity center -extent '128x128' *.svg
What I want to do:
Resize SVG to square SVG
Do some work with SVG
Then export it to 128x128 PNG