The MagickWand interface is a new high-level C API interface to ImageMagick core methods. We discourage the use of the core methods and encourage the use of this API instead. Post MagickWand questions, bug reports, and suggestions to this forum.
Post Reply
User avatar
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Resampling----problem

Post by anthony » 2007-06-14T17:11:24-07:00

resampling is purely a resize operator resizing the image based on the current resolution (density) to the desired image resolution.

resize does a great job in quality of result but at a trade off in speed.

-sample on the other hand is lightning fast by comparision but only as it just junks rows and columns of pixels. Scale is sort of a middle ground but averages rows and columns of pixels together.

thumbnail on the other hand tries to get the best of both. It sampls the image do to 5x the final size, then uses resize.

My suggestion is pick one of these faster methods, and do the resolution calculations yourself to find the final image size. You can then set the density or resolution of the image and output it.

If you have further problems, report it here and we'll see what we can do to help.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages

Post Reply