Red Hat Bugzilla – Bug 194449
Polygon filled with a tile becomes black
Last modified: 2007-11-30 17:07:25 EST
Description of problem:
Using the function gdImageFilledPolygon() with a tile creates a black field.
See the attached program for details.
Version-Release number of selected component (if applicable):
gd-2.0.28-4.4E.1 (Also seen for gd-2.0.33-6.2 on FC5. Does not happen with
gd-1.8.4-12.3.1 on RHEL3. Happens for both i386 and x86_64.)
Steps to Reproduce:
1. cc d.c -o d -lgd # d.c is the attached test program
3. display bull.png
A black triangle in a white field.
A blue triengle with red lines in a white field.
FWIW: gd 2.0.33 we have built locally on Solaris works correctly.
Created attachment 130727 [details]
Test program d.c
This problem should be fixed in the test version - gd-2.0.28-5.4E.test
Could you please test this version?
If there is any problem please attach your comment here.
The new version works fine for us too.
Created attachment 133382 [details]
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.