Page 1 of 1

Increase image size without interpolation

Posted: 2009-04-08T17:16:32-07:00
by daviddoria
Does anyone know how to turn off interpolation (resulting in each pixel simply being copied around itself multiple times)?

If I do this

Code: Select all

convert -resize 5000% Small.jpg Big.jpg
it uses some default interpolation. I can specify an interpolation like this:

Code: Select all

convert -resize 5000% -interpolate Average Small.jpg Big.jpg
But there is no option for "none". Anyone know an argument to do this?

Thanks,
Dave

Re: Increase image size without interpolation

Posted: 2009-04-08T17:23:49-07:00
by fmw42
convert small.jpg -scale 5000% big.jpg

This just replicates pixels when enlarging.

see
http://www.imagemagick.org/script/comma ... .php#scale
http://www.imagemagick.org/Usage/resize/#scale

Re: Increase image size without interpolation

Posted: 2009-04-08T17:27:11-07:00
by daviddoria
Fantastic, thanks!