Sophie

Sophie

distrib > Fedora > 13 > i386 > media > os > by-pkgid > a9a2e21c9933ef3e6ef18c83d7f81952 > files > 10

php-pecl-imagick-2.2.2-4.fc12.i686.rpm

<?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();
 
?>