in reply to Re^3: Perl GD problem with colors for text
in thread Perl GD problem with colors for text

Thank you for your time!

I converted into GIF and yes, it works, on *this* picture. Using other pictures, if I try to print text in another color in the same line (2 colors on the same line), again it bugs.

$red = $im->colorAllocate(255,0,0); $green = $im->colorAllocate(0,255,0);
$im->string(gdSmallFont,555,6,$testline1,$red);
$im->string(gdSmallFont,628,6,$testline2,$green);

A new pic has been uploaded at http://www.2shared.com/file/9508604/28e97b03/lr1_fee.html

The Green shows in "white"... Moreover working in GIF makes strange things in the pics that show up with defects in my application. I wonder if there isn't a way to make it work in PNG? After all GD is supposed to support PNG too...

Thank you
  • Comment on Re^4: Perl GD problem with colors for text