News for hackers. Stuff that matters.
Re:Google offers JPEG alternative for faster Web by Natsu on Thursday September 30, 2010 @06:11PM (#1745096)
JPEGs do bad things to your color space, though. I certainly welcome a replacement.

For example, see: http://www.hackerfactor.com/blog/index.php?/archives/250-Sho...

and

http://www.hackerfactor.com/blog/index.php?/archives/355-How...

It would be nice to see a more modern replacement, assuming the technology is better. That said, I haven't read enough about WebP yet to know if it actually fixes any of those problems with the JPEG format.

Re:Google offers JPEG alternative for faster Web by astrange on Thursday September 30, 2010 @06:20PM (#1745117)
That's a rounding loss, not a change to "your color space". In any case, JPEG supports storing RGB instead of YUV 4:2:0 (or even YUV 4:4:4).

WebP _doesn't_ support this, but it really doesn't matter. The point of image files is for you to look at the image, not at the pixel values.

Re:Google offers JPEG alternative for faster Web by Natsu on Friday October 01, 2010 @02:23AM (#1746218)
From the article I cited:

"In fact, of the 16 million colors in the 24-bit true-color pallet, JPEG can only store about 2.3 million colors. That's about 14% of the available color space."

and

"If JPEG stored images using RGB, then the Q tables would cause colors to diverge. For example, blue would have the most loss due to compression so images would appear more reddish and greenish. Instead, images are converted to a different color representation: luminance, chrominance red, and chrominance blue (YCrCb). Changing any one of these values alters the red, green, and blue components concurrently and prevents color divergence."

Re:Google offers JPEG alternative for faster Web by astrange on Friday October 01, 2010 @04:17PM (#1748508)
The article you cited is nonsense. Quantization which causes one of the color channels to get darker is called a "DC shift" and encoders try very hard not to introduce it.