Upscale pixel art with ImageMagick without blur

Turn a 32 px sprite into a 256 px image where every pixel stays a square.

SNP 074 #52B Filed imagemagick pixelart cmd

shell
magick sprite.png -filter point -resize 800% [email protected]

-filter point is nearest neighbour, so no interpolation. Use whole multiples (200%, 400%, 800%); a fractional scale makes some pixel rows thicker than others.

For a whole folder:

shell
magick mogrify -path ./big -filter point -resize 400% *.png

mogrify edits files in place unless you give it -path, so always give it -path. On ImageMagick 6 the commands are convert and mogrify without the magick prefix.