Bug #50194 [Ana->Csd]: imagettftext broken on transparent background w/o alphablending

From: Date: Wed, 14 Sep 2016 14:21:00 +0000
Subject: Bug #50194 [Ana->Csd]: imagettftext broken on transparent background w/o alphablending
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-204035@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=50194&edit=1

 ID:                 50194
 Updated by:         cmb@php.net
 Reported by:        stanislav at ww9 dot ru
 Summary:            imagettftext broken on transparent background w/o
                     alphablending
-Status:             Analyzed
+Status:             Closed
 Type:               Bug
 Package:            GD related
 Operating System:   Windows
 PHP Version:        5.2.11
 Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=php-src.git;a=commit;h=09eb6ed35eb5b0d164aa9fbad52dd8d873166294
Log: Fix #50194: imagettftext broken on transparent background w/o alphablending


Previous Comments:
------------------------------------------------------------------------
[2016-09-14 13:26:15] cmb@php.net

The problem is that the background of the character glyphs must
not be drawn, and actually, this issue has already been fixed as
of GD 2.0.26[1], but that fix never made it to PHP's bundled
libgd. I'm going to port the fix.

[1] <https://github.com/libgd/libgd/blob/GD_2_0_26/src/gdft.c#L748-L749>

------------------------------------------------------------------------
[2015-07-17 01:00:05] cmb@php.net

Um, not sure what's the actual issue reported in this ticket.
Unfortunately, most of the links to results, fonts, etc. in this
report and in #50958 are unavailable in the meantime.

I can reproduce overlapping (respectively insufficient horizontal
letter distance) as reported by alvaro with PHP 5.3.2, but this
has been fixed as of PHP 5.4.0, if not earlier.

However, the original supplied test script gives indeed completely
broken results due to imagealphablending($im, false); even on
recent versions (PHP 5.6.11 and 7.0.0beta1) and apparently not
related to the font. See <http://imgur.com/UPowpes>.
I'll try to
investigate.

------------------------------------------------------------------------
[2010-09-21 21:10:29] brunofgaspar at live dot com dot pt

Sorry for double post, but i forgot to include examples

Linux:
http://img836.imageshack.us/i/linuxr.png/

Windows:
http://img829.imageshack.us/i/windowsy.png/

------------------------------------------------------------------------
[2010-09-21 21:06:52] brunofgaspar at live dot com dot pt

Hi,

This is happening on PHP 5.3.3 on Linux ( CentOS 5 )

Some letters are overlapped...

------------------------------------------------------------------------
[2010-04-29 12:46:48] rezny at pharmdata dot cz

There is already a solution for this problem in svn for both 5.2 and 5.3 branches 
(submited by tabe more than 5 weeks ago) - look for the file gdft.c . I suppose 
that this bug can be closed now.

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=50194


--
Edit this bug report at https://bugs.php.net/bug.php?id=50194&edit=1


Thread (11 messages)

« previous php.bugs (#204035) next »