/usr/share/doc/php5-imagick/examples/thumbnail.php is in php5-imagick 3.2.0~rc1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | <?php
/*
A simple example demonstrate thumbnail creation.
*/
/* Create the Imagick object */
$im = new Imagick();
/* Read the image file */
$im->readImage( '/tmp/test.png' );
/* Thumbnail the image ( width 100, preserve dimensions ) */
$im->thumbnailImage( 100, null );
/* Write the thumbail to disk */
$im->writeImage( '/tmp/th_test.png' );
/* Free resources associated to the Imagick object */
$im->destroy();
?>
|