Resize image pixel by pixel without antialiasing (raw scale)

Alec Jacobson

October 12, 2009

weblog/

Using image magick's convert util, you can resize an image without any blurring or fuzziness by issuing the command with these options (this particularly resizes height to 1920 pixels):

convert input.png -filter Point -resize x1920 +antialias output.png

I resized this:

before resize

to

before resize

Update: As Pedrow points out, this is even easier:

convert input.png -scale x1920 output.png