ImageMagick resize without interpolation

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


This worked for me:

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

Explanation:

  • Interpolation method "Integer" just picks a nearest value.
  • Filter 'point' is also necessary, but I do not know why.

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.