I'm guessing you want to use JPEGs to make sure that older browsers can view them, as the files will be bigger than PNGs and the images not as crisp (I'm still pissed about losing the GIF format as I do a lot of calculated (non-photographic) images).

I just tested this out using the sample code from the GD Synopsis, and indeed  print $im->jpeg; creates a JPEG, but the odd thing was it appeared to be different from the PNG created with the same code. So, I think for a moment that this isn't right, and I try opening both images in the same viewer (our IT drones recently installed "Microsoft Photo Editor" here and it grabbed the PNG extension but not the JPEG). Sure enough, the files are virtually identical when you discount the fundamental difference between lossy and lossless formats, but MSPE had created a black and white grid on the background somehow. No matter, MSPE no longer grabs any extensions on this machine ;-).

--
I'd like to be able to assign to an luser


In reply to Re: GD::Graph action by Albannach
in thread GD::Graph action by chorg

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.