FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=18547&edit=1

ID: 18547
Updated by: jblank@twu.net
Reported By: jblank at twu dot net
Summary: setThickness not working on GD / PNG output
Status: Open
Type: Bug
Package: Image_Graph
Operating System: Debian
Package Version: 0.8.0
PHP Version: Irrelevant
Roadmap Versions:
New Comment:

Okay, it wouldn't prompt me to upload files. So see:

http://twu.net/~jblank/svgoutput.png
http://twu.net/~jblank/pngoutput.png

The SVG output (here, rasterised and saved as a PNG) is correct; one
line has a
thickness set to some value higher than the default (I forget which),
and the other
has a thickness set to 0 (and thus the line does not appear).

The GD/PNG output, as you can see, shows both lines as the same standard
width.
setThickness() is being ignored.


Previous Comments:
------------------------------------------------------------------------

[2011-05-18 16:59:23] jessieleah

Description:
------------
On line charts, setThickness is not working on PNG output via
GD. It works fine via SVG output. (N.b.: This may actually be a
bug in Image_Canvas. I'll update and/or close this bug report as
I learn more.)

Expected result:
----------------
setThickness should set the thickness of lines.

Actual result:
--------------
setThickness does not set the thickness of lines. (See example
output in attached files)

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

Search Discussions

  • Jblank at May 18, 2011 at 11:46 pm
    Edit report at http://pear.php.net/bugs/bug.php?id=18547&edit=1

    ID: 18547
    Updated by: jblank@twu.net
    Reported By: jblank at twu dot net
    Summary: setThickness not working on GD / PNG output
    Status: Open
    Type: Bug
    Package: Image_Graph
    Operating System: Debian
    Package Version: 0.8.0
    PHP Version: Irrelevant
    Roadmap Versions:
    New Comment:

    This is, after all, an Image_Canvas bug, and I've implemented a
    workaround. I
    added a trivial _getLineThickness() function and had GD.php call it when
    it is about
    to draw a data series; if the line thickness is set, then it does not
    attempt to draw
    that line anti-aliased.

    Furthermore, I added correct support for zero-width lines (i.e.: they do
    not draw at
    all, as expected).

    http://twu.net/~jblank/pngoutput2.png
    http://twu.net/~jblank/svgoutput2.png

    Filing a bug report for Image_Canvas, and submitting a patch.


    Previous Comments:
    ------------------------------------------------------------------------

    [2011-05-18 17:01:56] jessieleah

    Okay, it wouldn't prompt me to upload files. So see:

    http://twu.net/~jblank/svgoutput.png
    http://twu.net/~jblank/pngoutput.png

    The SVG output (here, rasterised and saved as a PNG) is correct; one
    line has a
    thickness set to some value higher than the default (I forget which),
    and the other
    has a thickness set to 0 (and thus the line does not appear).

    The GD/PNG output, as you can see, shows both lines as the same standard
    width.
    setThickness() is being ignored.

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

    [2011-05-18 16:59:23] jessieleah

    Description:
    ------------
    On line charts, setThickness is not working on PNG output via
    GD. It works fine via SVG output. (N.b.: This may actually be a
    bug in Image_Canvas. I'll update and/or close this bug report as
    I learn more.)

    Expected result:
    ----------------
    setThickness should set the thickness of lines.

    Actual result:
    --------------
    setThickness does not set the thickness of lines. (See example
    output in attached files)

    ------------------------------------------------------------------------
  • Jblank at May 18, 2011 at 11:47 pm
    Edit report at http://pear.php.net/bugs/bug.php?id=18547&edit=1

    ID: 18547
    Updated by: jblank@twu.net
    Reported By: jblank at twu dot net
    Summary: setThickness not working on GD / PNG output
    -Status: Open
    +Status: Bogus
    Type: Bug
    Package: Image_Graph
    Operating System: Debian
    Package Version: 0.8.0
    PHP Version: Irrelevant
    Roadmap Versions:
    New Comment:

    -Status: Open
    +Status: Bogus
    Bogus; problem is actually with Image_Canvas.


    Previous Comments:
    ------------------------------------------------------------------------

    [2011-05-19 00:46:42] jessieleah

    This is, after all, an Image_Canvas bug, and I've implemented a
    workaround. I
    added a trivial _getLineThickness() function and had GD.php call it when
    it is about
    to draw a data series; if the line thickness is set, then it does not
    attempt to draw
    that line anti-aliased.

    Furthermore, I added correct support for zero-width lines (i.e.: they do
    not draw at
    all, as expected).

    http://twu.net/~jblank/pngoutput2.png
    http://twu.net/~jblank/svgoutput2.png

    Filing a bug report for Image_Canvas, and submitting a patch.

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

    [2011-05-18 17:01:56] jessieleah

    Okay, it wouldn't prompt me to upload files. So see:

    http://twu.net/~jblank/svgoutput.png
    http://twu.net/~jblank/pngoutput.png

    The SVG output (here, rasterised and saved as a PNG) is correct; one
    line has a
    thickness set to some value higher than the default (I forget which),
    and the other
    has a thickness set to 0 (and thus the line does not appear).

    The GD/PNG output, as you can see, shows both lines as the same standard
    width.
    setThickness() is being ignored.

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

    [2011-05-18 16:59:23] jessieleah

    Description:
    ------------
    On line charts, setThickness is not working on PNG output via
    GD. It works fine via SVG output. (N.b.: This may actually be a
    bug in Image_Canvas. I'll update and/or close this bug report as
    I learn more.)

    Expected result:
    ----------------
    setThickness should set the thickness of lines.

    Actual result:
    --------------
    setThickness does not set the thickness of lines. (See example
    output in attached files)

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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedMay 18, '11 at 4:01p
activeMay 18, '11 at 11:47p
posts3
users1
websitepear.php.net

1 user in discussion

Jblank: 3 posts

People

Translate

site design / logo © 2022 Grokbase