The JPEG artifacts bothered me (they’re even present in the original, unfortunately), so I restored it to its deserved 7-color indexed PNG glory (which has the added bonus of reducing the filesize by ~90% from 42602 bytes to 4733 bytes!):
Since the original is pretty small (489x460) for modern high resolution displays, I also made a version that’s might be more conducive to sharing by scaling it up by 2x using nearest-neighbor interpolation—it’s literally just the original but with 2x2 pixels and so the original can be recovered losslessly by reversing the process:
Due to the nature of integer scaling pixel art and PNG compression, even though it’s 4x the pixels the filesize only increases by ~25%.
For the record, I used ImageMagick to scale like so:
magick input.png -interpolate Integer -filter point -resize 200% output.png
As long as the argument for -resize is a multiple of 100, you’ll get a pixel-perfect output. I have a little bash function to handle it:
function pixelscale {
magick "$1" -interpolate Integer -filter point -resize ${2}00% "${1%.*}_${2}x.${1##*.}"
}
so as long as that gets loaded by your .bashrc all you have to do is type
pixelscale <infile> <integer scale factor>
and it’ll handle the rest (e.g. pixelscale image.png3 will spit out image_3x.png which is nearest-neighbor scaled by 3x).
The JPEG artifacts bothered me (they’re even present in the original, unfortunately), so I restored it to its deserved 7-color indexed PNG glory (which has the added bonus of reducing the filesize by ~90% from 42602 bytes to 4733 bytes!):
Since the original is pretty small (489x460) for modern high resolution displays, I also made a version that’s might be more conducive to sharing by scaling it up by 2x using nearest-neighbor interpolation—it’s literally just the original but with 2x2 pixels and so the original can be recovered losslessly by reversing the process:
Due to the nature of integer scaling pixel art and PNG compression, even though it’s 4x the pixels the filesize only increases by ~25%.
For the record, I used ImageMagick to scale like so:
As long as the argument for
-resizeis a multiple of 100, you’ll get a pixel-perfect output. I have a little bash function to handle it:function pixelscale { magick "$1" -interpolate Integer -filter point -resize ${2}00% "${1%.*}_${2}x.${1##*.}" }so as long as that gets loaded by your
.bashrcall you have to do is typepixelscale <infile> <integer scale factor>and it’ll handle the rest (e.g.
pixelscale image.png 3will spit outimage_3x.pngwhich is nearest-neighbor scaled by 3x).edit: missed a few errant pixels…fixed.