note 90458 modified in function.imagick-trimimage by danbrown

From: Date: Thu, 23 Apr 2009 13:14:06 +0000
Subject: note 90458 modified in function.imagick-trimimage by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-153623@lists.php.net to get a copy of this message
After operations that change the crop of the image, like trimImage does, IM preserves the old canvas and positioning info. If you need to do additional operations on the image based on the new size, you'll need to reset this info with setImagePage. This is the equivalent of the +repage command line argument. <?php $im->trimImage(0); $im->setImagePage(0, 0, 0, 0); ?> --was-- After operations that change the crop of the image, like trimImage does, IM preserves the old canvas and positioning info. If you need to do additional operations on the image based on the new size, you'll need to reset this info with setImagePage. This is the equivalent of the +repage command line argument. $im->trimImage(0); $im->setImagePage(0, 0, 0, 0); http://php.net/manual/en/function.imagick-trimimage.php

« previous php.notes (#153623) next »