What is Imagick

Imagick is a native php extension to create and modify images using the ImageMagick API.
The name causes some confusion as people think that ImageMagick and Imagick are the same thing. You can use ImageMagick without Imagick but you need both Imagick and ImageMagick installed to run it.

Here are some links:


Here are simple examples:

Resize and display an image without saving it:

<?php 
header
("Content-type: image/jpeg");
$image = new Imagick("original_images/flowers.jpg");
$image->thumbnailImage(1000);
echo 
$image;
?>

Resize an image and save it:

<?php 
$thumbnail 
= new Imagick("original_images/flowers.jpg");
$thumbnail->thumbnailImage100);
$thumbnail->writeImage"thumbnail.jpg" );
?>