%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/cpanel/ea-php74/root/usr/share/doc/pecl/imagick/examples/
Upload File :
Create Path :
Current File : //opt/cpanel/ea-php74/root/usr/share/doc/pecl/imagick/examples/thumbnail.php

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

Zerion Mini Shell 1.0