|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-11-29 03:26 UTC] danack@php.net
-Status: Open
+Status: Feedback
[2018-11-29 03:26 UTC] danack@php.net
[2018-12-09 04:22 UTC] pecl-dev at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 09:00:01 2025 UTC |
Description: ------------ The same code snippet (see below) works properly in Ubuntu 14.04, which has Imagick 6.7 installed in it. Test script: --------------- $plateWidth = 142; $plateHeight = 40; $platePositionX = 434; $platePositionY = 171; $fontColor = '#43B19C'; $transparentColor = '#00000000'; $fontPath = 'PUT HERE VALID PATH TO YOUR FONT FILE'; $text = ''; $plate = new Imagick(); $plate->newImage($plateWidth, $plateHeight, new ImagickPixel($transparentColor)); $plate->setBackgroundColor(new ImagickPixel($transparentColor)); $plate->setFont($fontPath); $plate->setGravity(Imagick::GRAVITY_CENTER); $plate->newPseudoImage($plateWidth, $plateHeight, "caption:{$text}"); Expected result: ---------------- The empty plate image is rendered. If the format "caption:" with empty text is not allowed, a clear error message should be shown to the user (developer). Actual result: -------------- The php-fpm/apache process hangs, takes longer than 30+2 seconds and eventually crashes because of execution timeout.