in reply to Re: Which graphics format can Perl alter easier and more?
in thread Which graphics format can Perl alter easier and more?

Wow, I did not realize that if you resize .png's that they don't lose their detail. That is one of my erks about using .jpg's, because once you try to resize it even in a little bit, you can tell it has been resized.

This must explain why many friends of mine on the internet have begun to use .png's frequently ( I didn't realize that there were some very useful reasons to use .png's :) )

Thank you for the help, and for recommending Image::Magick! This information will prove to be useful as I am a graphics enthusiast as well as a programmer.

Andy Summers
  • Comment on Re: Re: Which graphics format can Perl alter easier and more?

Replies are listed 'Best First'.
Re: Re: Re: Which graphics format can Perl alter easier and more?
by John M. Dlugosz (Monsignor) on Aug 13, 2001 at 07:04 UTC
    Resizing in any format will lose detail!

    However, a highly-compressed JPEG that looks OK in normal use will go very wrong very quick if you start manipulating it. The compression artifacts, just below your visibility threshhold originally, really mess things up.

    Zoom in on a JPEG and you'll see the artifacts I'm talking about. It's called "scambled eggs" or "mosqueto legs".

    —John

      JPEG was originally intended to compress photos, which are pretty noisy in high frequencies. The compression artifacts don't really show if you're compressing suitable images (most of your pr0n collection, for instance :-), but if you're dealing with images with sharp high-frequency detail (especially sharp edges, I find) you'll get a bunch of crap in the high band.

      PNG, on the other hand, was designed as a replacement for GIF, and had to handle all sorts of sharp-edged, computer generated web content, so it don't do that. (Neither is vector-based, so if you zoom in far enough you'll naturally get a huge mess of pixels.) PNG also has great alpha-channel support, much better than GIF's "ignore this palette entry" crap.

      --
      :wq
Re:^3 Which graphics format can Perl alter easier and more?
by lemming (Priest) on Aug 13, 2001 at 12:47 UTC

    Hmm, ok when I said resize I should of said any manipulation of jpeg will degrade it due to it's lossy compression. You can edit png files and save them without having the file lose detail. A decent intro into the png format is this: png intro