note 107778 added to imagick.resizeimage

From: Date: Sun, 04 Mar 2012 09:27:42 +0000
Subject: note 107778 added to imagick.resizeimage
Groups: php.notes 
Request: Send a blank email to php-notes+get-186482@lists.php.net to get a copy of this message
The changelog comment "2.1.0 Added optional fit parameter. This method now supports proportional scaling. Pass zero as either parameter for proportional scaling." is poorly structured and therefore IMO misleading. Yes for proportional scaling you pass 0 as either parameter... however this is *not* true if you use the optional fit param. When bestfit == true you must specify a *non-zero* value for both columns and rows. Note it WILL still scale proportionally e.g. Imagick::resizeImage ( 200, 200, imagick::FILTER_LANCZOS, 1, TRUE) will resize a 1000x750 image to 200x150 So for proportional resizing: without "bestfit" Imagick::resizeImage ( 200, 0, imagick::FILTER_LANCZOS, 1) with "bestfit" Imagick::resizeImage ( 200, 200, imagick::FILTER_LANCZOS, 1, TRUE) ---- Server IP: 69.147.83.197 Probable Submitter: 82.152.19.97 ---- Manual Page -- http://www.php.net/manual/en/imagick.resizeimage.php Edit -- https://master.php.net/note/edit/107778 Del: integrated -- https://master.php.net/note/delete/107778/integrated Del: useless -- https://master.php.net/note/delete/107778/useless Del: bad code -- https://master.php.net/note/delete/107778/bad+code Del: spam -- https://master.php.net/note/delete/107778/spam Del: non-english -- https://master.php.net/note/delete/107778/non-english Del: in docs -- https://master.php.net/note/delete/107778/in+docs Del: other reasons-- https://master.php.net/note/delete/107778 Reject -- https://master.php.net/note/reject/107778 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#186482) next »