Difference between Scale, Resize en Thumbnail methods

Mar 17, 2015 at 4:02 PM
Hi,

I noticed that a MagickImage object has "Scale", "Resize" en "Thumbnail" methods.

Maybe al silly question, but when would i use one over the other?
I did some testing but it looked like they all produced the same result.

Many thanks!

Cheers,
Erik
Coordinator
Mar 17, 2015 at 4:20 PM
You can find a good explanation here: http://www.imagemagick.org/Usage/resize/
Mar 17, 2015 at 4:52 PM
Hi there,

Thanks for taking the time to answer my question.
Maybe it's because i'm an idiot, but the page you referenced confuses me because it's full of cross-links to terms i don't really understand.

Below is what ( i think) i understood.
Could you tell me if my summary is correct?

Resize
Most commonly used.

Scale
  • a simplified, faster form of the resize command.
  • great for showing a clean unblurred magnification of an image.
  • Less suited for minifying a real-world photograph ( it tends to look overlay sharp, with aliasing ('staircase') effects along sharp edges)
Thumbnail
  • Resize with profile stripping
  • Designed specifically for shrinking very very large images to small thumbnails.
Short Summary ?
  • Use Scale for enlarging an image
  • Use Thumbnail for creating a image smaller than the original without profile data
  • Use Resize for other scenarios?
Coordinator
Mar 18, 2015 at 5:47 AM
I think that is a pretty good summary. But I don't think you ever want to enlarge an image unless you like the artistic effect of the artifacts.