4
A simple example demonstrate thumbnail creation.
7
/* Create the Imagick object */
10
/* Read the image file */
11
$im->readImage( '/tmp/test.png' );
13
/* Thumbnail the image ( width 100, preserve dimensions ) */
14
$im->thumbnailImage( 100, null );
16
/* Write the thumbail to disk */
17
$im->writeImage( '/tmp/th_test.png' );
19
/* Free resources associated to the Imagick object */
b'\\ No newline at end of file'