system: Linux mars.sprixweb.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
<?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();
?>