Resize image without interpolation

I have a small pixel map original and you want to resize it to readability.

Using mogrify -resize 1600% , I get an interpolated image: wrong .

What I'm trying to get is this: right .

Can this be done using ImageMagick or any other open source command line tool?

+8
source share
2 answers

I finally found a solution: using -scale instead of -resize does the trick. It is "hidden" under the heading Scale - Minify with pixel averaging , so I did not notice it at first, looking for an increase instead of minimizing it.

+11
source

This worked for me:

 convert input.png -interpolate Integer -filter point -resize "10000%" output.png 

Explanation:

  • The interpolation method "Integer" simply selects the closest value.
  • A dot filter is also needed, but I don’t know why.
0
source

All Articles