次のコードを使用して img のサイズを 90x90 に変更したいのですが、img はアップロードされていますが、サイズが変更されていません。
$image = 'the path to the img';
/*** a new imagick object ***/
$im = new Imagick();
/*** ping the image ***/
$im->pingImage($image);
/*** read the image into the object ***/
$im->readImage( $image );
$im->thumbnailImage( 90, null );
$im->setImageFormat( "png" );
/*** write image to disk ***/
$im->writeImage( "tmp/spork.png" );
$im->destroy();
コードを変更しました$im->cropThumbnailImage(90,90);
が、それでも機能しません。