note 91546 added to function.imagick-scaleimage

From: Date: Tue, 16 Jun 2009 15:38:46 +0000
Subject: note 91546 added to function.imagick-scaleimage
Groups: php.notes 
Request: Send a blank email to php-notes+get-156923@lists.php.net to get a copy of this message
If anyone finds "The other parameter will be calculated if 0 is passed as either param. " to be a bit confusing, it means approximately this: <?php $im = new Imagick('example.jpg'); $im->scaleImage(300, 0); ?> This scales the image such that it is now 300 pixels wide, and automatically calculates the height to keep the image at the same aspect ratio. <?php $im = new Imagick('example.jpg'); $im->scaleImage(0, 300); ?> Similarly, this example scales the image to make it 300 pixels tall, and the method automatically recalculates the image's height to maintain the aspect ratio. ---- Server IP: 208.69.120.35 Probable Submitter: 64.59.229.158 ---- Manual Page -- http://www.php.net/manual/en/function.imagick-scaleimage.php Edit -- https://master.php.net/note/edit/91546 Del: integrated -- https://master.php.net/note/delete/91546/integrated Del: useless -- https://master.php.net/note/delete/91546/useless Del: bad code -- https://master.php.net/note/delete/91546/bad+code Del: spam -- https://master.php.net/note/delete/91546/spam Del: non-english -- https://master.php.net/note/delete/91546/non-english Del: in docs -- https://master.php.net/note/delete/91546/in+docs Del: other reasons-- https://master.php.net/note/delete/91546 Reject -- https://master.php.net/note/reject/91546 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#156923) next »