Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: more perl desktop images

by BazB (Priest)
on Aug 30, 2003 at 10:41 UTC ( [id://287898]=note: print w/replies, xml ) Need Help??


in reply to more perl desktop images

Burn all GIFs! What's wrong with JPEG or PNG?

Nice images tho :-)


If the information in this post is inaccurate, or just plain wrong, don't just downvote - please post explaining what's wrong.
That way everyone learns.

Replies are listed 'Best First'.
Re: more perl desktop images
by jonadab (Parson) on Sep 11, 2003 at 12:07 UTC
    What's wrong with JPEG or PNG?

    JPEG is evil (because it uses Evil Lossy Compression) and should never be used under any circumstances, but extra-especially it should never be used for images containing text. (Yes, it is _possible_ to create lossless JPEG images, in theory, but most image software does not give the user that option. The Gimp does though, I think.)

    PNG is great, and has pretty much taken over as the image format I use for almost everything (except when I want to preserve layers...), but for the type of images represented here (only one foreground color in some of them...) GIF gets better compression. Granted, the circumstances under which it is appropriate to use images with such a low colour depth are rapidly diminishing; the cost of colour printers and inks is at this point such that it might even be sensible to have true-colour letterheads; nevertheless, there *are* still applications for images with fewer than 256 colours. One of the best examples would be images intended to be placed on a quantity of t-shirts and sold or given away at a conference, which is roughly what these images look like they might be destined for.


    $;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}} split//,".rekcah lreP rehtona tsuJ";$\=$ ;->();print$/
      Strange that you mention GIF but don't call it evil. Reducing a general image to GIF format is usually far more lossy than compressing it as JPEG, due to GIF only having at most 256 colours. Furthermore, GIF is evil due to its licensing. The announcement of Unisys to start charging for the production of GIF is what caused PNG to be created. PNG is a replacement for GIF - not for JPEG.

      JPEG itself isn't evil. The lossy compression is usually not something you notice, as long as you stick to the domain JPEG was invented for: pictures. GIF and PNG shine where JPEG doesn't: images with a low number of colours, images with sharp boundaries between very different colours, etc. So, typically things as drawings, icons, plots, etc.

      Abigail

        Strange that you mention GIF but don't call it evil. Reducing a general image to GIF format is usually far more lossy

        I agree with this, for general-purpose images. I would never, for example, use GIF for icons or wallpaper or photographs.

        Furthermore, GIF is evil due to its licensing.

        If the licensing were enforced in anything similar to the fashion that was briefly threatened, I would agree. As it stands, in practice, the licensing issues around GIF are a minor caveat, nothing like the horrific issue that is JPEG compression.

        PNG is a replacement for GIF - not for JPEG.

        No, PNG is a replacement for both GIF and JPEG, as well as TIFF, BMP, XPM, PCX, and so on and so forth. The only other image formats we still need besides PNG are more advanced formats (that support things like layers (XCF) or color-selective opacity, vector formats (POV, SVG, and so forth), and of course the venerable text/plain format for ASCII graphics, which gets better compression than all the others.

        JPEG itself isn't evil.

        The use of JPEG lossy compression is evil. Lossless JPEGs aren't evil, but with wide PNG support these days (wide if you don't need the alpha channel, which JPEG doesn't have anyway), they're rather pointless.

        The lossy compression is usually not something you notice

        Notice? NOTICE? It's not a question of noticing. It's a question of being able to suppress my negative reaction long enough to look at the image. When an image (any image, except maybe a solid block of exactly one colour, though of course it's worst for text) is compressed lossily, the compression distortion stands out as *the* predominant feature of the image. It is the first thing I notice. It stands out and calls attention to itself and cannot be ignored.


        $;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}} split//,".rekcah lreP rehtona tsuJ";$\=$ ;->();print$/

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://287898]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2024-04-19 15:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found