Perl Monk, Perl Meditation | |
PerlMonks |
Re: •Re: GIF patentby sauoq (Abbot) |
on Jun 19, 2003 at 02:49 UTC ( [id://267058]=note: print w/replies, xml ) | Need Help?? |
JPEG is not lossy on the things it was meant to capture: natural images. JPEG is just as lossy with natural images as it is with everything else. It's the same algorithm no matter what the image source. The key factor, which you neglect to mention, is the human eye. With the right subject matter and the right compression "quality" setting, most people won't be able to distinguish, by eye, the JPEG from an uncompressed format. Software will though. (Thus, we don't store satellite imagery, for example, in JPEG because of the need for automated analysis.) For a fixed number of output bits, JPEG is less lossy on natural images than PNG could ever be. The number of output bits is irrelevant. It's the number of input bits that matters. Neither PNG nor JPEG provides a way to say "compress this image to exactly X bytes." The issue is whether you can decompress your data and retrieve, unaltered, the original input. It's simple. Both PNG and JPEG are compressed file formats. JPEG makes a trade-off: a slight loss of information for a smaller file size. That's why it is called lossy. PNG doesn't make that trade-off. That's why it is called lossless. Trying to look at it bass-ackward, from the perspective of how many output bits each format results in, and claiming JPEG is "less lossy" than PNG isn't helping anyone, especially not those that are unfamiliar with the concepts. I know you already understand this merlyn, but instead of a condescending response tainted with a judgement about the original poster's tone ("please stop saying that as if it was a bad thing") why not just make your point... "JPEG is a very good format for its intended use." -sauoq "My two cents aren't worth a dime.";
In Section
Seekers of Perl Wisdom
|
|