Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>A few points that might help you decide.</p> <ul> <li><p>The resampled output from ImageMagick and gd2 were largely similar. I'm not sure what sort of resampling gd2 performs, and I'm fairly certain that ImageMagick uses bicubic interpolation, but either way, for most cases, bicubic and bilinear resampling generate outputs that are virtually identical while downsizing. Upscaling a small image is where bicubic interpolation really stands apart. (Even so, there are some pathological cases where the difference between bicubic and bilinear interpolation might be striking -- check out <a href="http://en.wikipedia.org/wiki/Aliasing" rel="nofollow">http://en.wikipedia.org/wiki/Aliasing</a>)</p></li> <li><p>I haven't had much chance to use the ImageMagick module in PHP, though the CLI version was blazing fast for resampling images. Assuming the <code>Imagick</code> module is similarly fast, you should see quick performance. However, in the case of gd2, speed has been a bit of an issue -- I've frequently used it for generating 50-odd thumbnails per page, and the lag is noticeable.</p></li> <li><p>gd2 is a part of most PHP installations, and the API is fairly simple to use. <code>Imagick</code> seems to be a PECL extension. Depending on your hosting provider, that may or may not be an issue.</p></li> </ul> <p>That said, let me point out that it's <strong>almost always</strong> a better idea to cache resized images -- especially if you are sure that the same image will be resized frequently. For instance, if you were creating, say, some online shop and wanted to display image thumbnails, it'd particularly suck if you ran the same set of images through the resizer again and again. OTOH for applications where the images are more variable, on-the-fly resizing might be the better option.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload