Image::Magick::Chart::HorizontalBars: Black grid background

PerlMagick is an object-oriented Perl interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning PerlMagick.
Post Reply
peterc

Image::Magick::Chart::HorizontalBars: Black grid background

Post by peterc »

Hi everyone.

I'm using the code at http://paste.tclers.tk/1378 to generate graphs. The code is a very lightly modified version of the example in the module's documentation.

The result has a black background in the grid portion of the image. Eg: http://pc.autons.net/stuff/perl__image_ ... mage-1.png

The issue remains the same whether the output file is given a .gif or .png extension.

I'm using Image::Magick::Chart::HorizontalBars as refreshed from CPAN yesterday and ImageMagick 6.4.7-3 as downloaded from http://www.imagemagick.org/script/install-source.php

Any and all suggestions for resolving this would be much appreciated.
peterc

Re: Image::Magick::Chart::HorizontalBars: Black grid background

Post by peterc »

I reported this to the module author, Ron Savage, on Friday and he's uploaded an updated module to CPAN. The fix has resolved the issue for me.

I'm told the problem was in Image::Magick::Chart's method draw_frame(), where it called Image::Magick's Draw(); Draw()'s fill option previously defaulted to 'none' but in new versions it defaults to something else. Ron apparently fixed his code by specifying "fill => 'none'," to a number of parameter lists.

Many thanks to Ron for his prompt solution :)
Post Reply