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

In reply to Re^4: Perl GD problem with colors for text by natol44
in thread Perl GD problem with colors for text by natol44

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.