DJ Mike's Tutorials: PHP

Imagemagick Functions


^

Imagick::cropThumbnailImage

Description:
bool Imagick::cropThumbnailImage ( int $width , int $height )

Creates a fixed size thumbnail by first scaling the image down and cropping a specified area from the center.
Parameters
width
The width of the thumbnail
height
The Height of the thumbnail
Return Values
Returns TRUE on success.
Errors/Exceptions
Throws ImagickException on error.

Examples



<?
$thumb 
= new Imagick("earthday_07_03a.jpg");
$thumb->cropthumbnailimage100100);
$type $thumb->getformat();
header("content-type: image/$type");
echo 
$thumb;
?>


^

Created by DJ Mike from Santa Barbara

DJ Mike


Dance Away Santa Barbara's Home Page
<a href="http://www.statcounter.com/" target="_blank"> <img src="http://c5.statcounter.com/counter.php?sc_project=1321035&java=0&security=da2193dc" alt="counter free hit invisible" border="0" /></a>