|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-04-22 00:39 UTC] naquad at gmail dot com
[2013-12-03 11:30 UTC] mike@php.net
-Assigned To:
+Assigned To: mkoppanen
[2015-01-02 22:18 UTC] Danack at basereality dot com
[2015-02-07 02:56 UTC] danack@php.net
[2015-04-01 16:22 UTC] danack@php.net
-Status: Assigned
+Status: Wont fix
[2015-04-01 16:22 UTC] danack@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 07:00:01 2025 UTC |
Description: ------------ Annotations don't use last pixel of the image (actual result). It looks like its clipped or its some rounding error, but same code in Ruby + RMagick works ok. ImageMagick is 6.7.6.2 Test script: --------------- <?php $im = new Imagick(); $im->newImage(100, 100, new ImagickPixel('white'), 'JPEG'); $draw = new ImagickDraw(); $draw->setFontSize(17); $draw->setFillColor(new ImagickPixel('#000')); $draw->setFontStyle(imagick::STYLE_NORMAL); $draw->setFontWeight(400); $draw->setStrokeColor(new ImagickPixel('transparent')); $im->annotateImage($draw, 101, 52, -90, 'test'); // 101 here is on purpose to show the bug more explicitly $im->drawImage($draw); $im->writeImage('1.png'); Actual result: -------------- http://i40.tinypic.com/2i7a0w4.png