Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
June 20, 2003 will be a beautiful day ! Because it's friday that expires the Unisys's patent over the GIF format.
GIF will be therefore royalties free in US, the licence will expire in France, Italy and Uk in one year, between June 15 and 20, 2004 according to countries.

Once upon the time there was a beautiful baby : the PNG format.
PNG has its pixels expressed in 24 bits while GIF only 8.
PNG is not a lossy compression technique while JPEG, well, yes.

However, as far as I know, nobody has been able to compile Tk::PNG under Win32. (Perl AS 5.5x, 5.6.x and 5.8).
Some of the bests fails
Is that also the case in this prestigious monastery ?
Some shoot under Win32 for some of you ?
Some success, O my God, some success ? How ?
If not what's yours thoughts about why it fails ?

And could we survive in a programming world where PNG under Win32 is the master sin ?

For Tk, under Win32, it means: the only way to describe complexity in a picture must be done through the XPM format (JPEG is 24 bits but some pixels will vanish).
Tk::Photo is able to read 24 bits format, like BMP 24b (internally the lib can use 32 bits per pixel) but it can output only 8 bits for BMP and Gif of course.
Note: the XPM format using the Tk'write() method output 24 bits if you want..
Handle XPM is tricky but can take a while.
Of course there is TIMTOWTDI, but GD is a 8 bits package, remains Image'Magick, Prima(? bits, writing capability ?), Wxperl (?) and Win32::Gui which allows BMP 24b (Writing with DIBitmap) but Tk::PNG is, of course, very best suited for the Tk environment

Win32 Tk users are still expecting 24 bits/pixel embedded in a lossless process.
If one of my dear fellow has already solved this problem, could this neural brother explains his method ?


In reply to GIF patent by didier

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, 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, 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.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others romping around the Monastery: (2)
    As of 2020-02-23 01:57 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      What numbers are you going to focus on primarily in 2020?










      Results (102 votes). Check out past polls.

      Notices?