Page 1 of 1

Enlarge with good results

Posted: 2012-05-06T16:38:34-07:00
by strgg
Good day everyone

I try to enlarge a picture like this:

Code: Select all

$width = $width * 4;
$height = $height * 4;
exec("convert src_images/monkeys.png -adaptive-resize ".$width."x".$height."  resized_adaptive.png");
exec("convert src_images/monkeys.png -resize ".$width."x".$height."  resized.png");
The results from those 2 commands look like the same unlike written http://www.imagemagick.org/Usage/resize ... ive-resize.

Originalimage:
http://www.flickr.com/photos/floridapfe ... hotostream

Resized with a online service which results in very good quality. http://www.pixer.us
Image

Resized with imagemagick
Image
if you go eg in the left down corner you can see that the picture consists out of 60 x 60 pixel sized quadres.

Which different way would you suggest without increasing processing power compared to the initial given commands?
Thanks !

Re: Enlarge with good results

Posted: 2012-05-09T20:36:39-07:00
by anthony
-adaptive-resize can be simulated using

Code: Select all

-filter point -interpolate ???? -distort Resize
-adaptive resize was meant to only use 'mesh interpolation', but whether it uses "Mesh' or the current -interpolate setting, depends on your exact version of IM.

Try setting -interpolate nearest-neighbor before using -adaptive-resize to test if it is dependant or not.

I hope to resolve this this-or-that situation in IMv7 by adding -interpolative-resize Though this operation may be rolled into a more general -resize-special {method} for the myriad of special purpose resizes that currently exist. (that change will be in late beta testing)