On December 21 2011 03:40 teekesselchen wrote:
I thought I would put this at a test quickly:
+ Show Spoiler +
Here is first png second jpg
![[image loading]](http://i.imgur.com/XgTCT.jpg)
Well... Today, I learned something! I really didn't know that png was useful for this yet and I have no idea of technical details, but it indeed seems that png can handle black-on-white lines much better (opened and saved it with PS, 12/12 quality for the jpg).
However, this only is in Firefox for some reason. When I open the images (jpg and png) in Photoshop, they still look exactly the same.
![[image loading]](http://i.imgur.com/WKxb2.png)
I thought I would put this at a test quickly:
+ Show Spoiler +
Here is first png second jpg
![[image loading]](http://i.imgur.com/XsUTq.png)
![[image loading]](http://i.imgur.com/XgTCT.jpg)
Well... Today, I learned something! I really didn't know that png was useful for this yet and I have no idea of technical details, but it indeed seems that png can handle black-on-white lines much better (opened and saved it with PS, 12/12 quality for the jpg).
However, this only is in Firefox for some reason. When I open the images (jpg and png) in Photoshop, they still look exactly the same.
![[image loading]](http://i.imgur.com/WKxb2.png)
There might be a reason why it's called portable network graphics format.
+ Show Spoiler [technobabble] +
JPEG (Joint Photographic Experts Group) format can produce a smaller file than PNG for photographic (and photo-like) images, since JPEG uses a lossy encoding method specifically designed for photographic image data, which is typically dominated by soft, low-contrast transitions, and an amount of noise or similar irregular structures. Using PNG instead of a high-quality JPEG for such images would result in a large increase in filesize with negligible gain in quality. By contrast, when storing images that contain text, line art, or graphics – images with sharp transitions and large areas of solid color – the PNG format can compress image data more than JPEG can, and without the noticeable visual artifacts which JPEG produces around high-contrast areas. Where an image contains both sharp transitions and photographic parts a choice must be made between the two effects. Note that JPEG does not support transparency.
Because JPEG uses lossy compression, it suffers from generation loss, where repeatedly encoding and decoding an image progressively loses information and degrades the image. Because PNG is lossless, it is a suitable format for storing images to be edited. While PNG is reasonably efficient when compressing photographic images, there are lossless compression formats designed for specifically for photographic images, lossless JPEG 2000 and Adobe DNG (Digital negative) for example. However these format are either not widely supported or proprietary. An image can be saved into JPEG format for distribution so that the single pass of JPEG encoding will not noticeably degrade the image.
![[image loading]](http://3.asset.soup.io/asset/2640/2275_562b.gif)