Snippets - Imagick

Snippets index page

Resize an image and save it - Anthony 14/6/2008

This uses Imagick to resize an image and save it.

  1. <?php 
  2. $thumbnail = new Imagick("input.jpg");
  3. $thumbnail->thumbnailImage100);
  4. $thumbnail->writeImage"output.jpg" );
  5. ?>

For more examples and information check out the main Imagemagick section.

Display image without saving View

Resize an image and save it View