DEV Community

[Comment from a deleted post]
 
qm3ster profile image
Mihail Malo

What if, instead, one does this:

node -p "[48,96,128,192,512].map(s=>\`convert -resize \${s}x\${s} icon.svg \"icon-\${s}x\${s}.png\"\`).join('\n')" | bash

🤔🤔🤔

 
bennypowers profile image
Benny Powers 🇮🇱🇨🇦

For specific APIs see the imagemagick docs

 
qm3ster profile image
Mihail Malo

Please don't be naughty.
It's a mistake in your example and is already fixed in my second comment.