Back to the snippets index

Resize an image and save it ( Anthony 14/6/2008 )

This uses Imagick to resize an image and save.

Imagick code:

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

Display image without saving
Resize an image and save it