note 117605 added to imagick.borderimage
| From: | rosh3000 at gmail dot com | Date: | Mon, 06 Jul 2015 15:52:12 +0000 |
| Subject: | note 117605 added to imagick.borderimage | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-203053@lists.php.net to get a copy of this message | ||
To get an image with exact dimensions (i.e. add whitespace) use with borderImage:
$desired_width = 1000;
$desired_height = 1000;
$image->scaleImage($desired_width,$desired_height , true);
$image->borderImage('white', ($image->getImageWidth() - $desired_width) /
2,($image->getImageHeight() - $desired_height ) / 2);
----
Server IP: 72.52.91.14
Probable Submitter: 86.2.97.133
----
Manual Page -- http://php.net/manual/en/imagick.borderimage.php
Edit -- https://master.php.net/note/edit/117605
Del: integrated -- https://master.php.net/note/delete/117605/integrated
Del: useless -- https://master.php.net/note/delete/117605/useless
Del: bad code -- https://master.php.net/note/delete/117605/bad+code
Del: spam -- https://master.php.net/note/delete/117605/spam
Del: non-english -- https://master.php.net/note/delete/117605/non-english
Del: in docs -- https://master.php.net/note/delete/117605/in+docs
Del: other reasons-- https://master.php.net/note/delete/117605
Reject -- https://master.php.net/note/reject/117605
Search -- https://master.php.net/manage/user-notes.php