I have a small pixel map
and want to resize it for better readability.
Using mogrify -resize 1600% I get an interpolated image:
.
What I'm trying to get is this:
.
Can this be done by ImageMagick or any other open source command line tool?
I finally found the solution: using -scale instead of -resize does the trick. It is 'hidden' under the heading Scale - Minify with pixel averaging, therefore I overlooked it at first, searching for magnification instead of minification.
This worked for me:
convert input.png -interpolate Integer -filter point -resize "10000%" output.png
Explanation:
display -sample 400% worked for me.
"Change the image size simply by directly sampling the pixels original from the image. When magnifying, pixels are replicated in blocks. When minifying, pixels are sub-sampled (i.e., some rows and columns are skipped over)."
https://imagemagick.org/script/command-line-options.php#sample
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With