PDA

View Full Version : Do PNG Portraits work better than JPGs?



Sigurd
May 12th, 2010, 20:39
I made a few portraits for my friends and I've started using jpg format for the smaller size.

I have a question though. Do PNGs look better? Does it even matter when the program gets a hold of the file?


S

cpbs
May 12th, 2010, 21:43
JPEG (Joint Photography Experts Group) 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 (often 5–10 times) with negligible gain in quality.

PNG is a better choice than JPEG for storing images that contain text, line art, or other images with sharp transitions. Where an image contains both sharp transitions and photographic parts a choice must be made between the large but sharp PNG and a small JPEG with artifacts around sharp transitions. JPEG also does not support transparency.

JPEG is a worse choice for storing images that require further editing as it suffers from generation loss, whereas lossless formats do not. Since PNG's extreme inefficiency in compressing photographs makes it not useful for saving temporary photographs that require successive editing, the usual choice is a loss-less compression format designed for photographic images, such as lossless JPEG 2000, or Adobe DNG (Digital negative). When the photograph is ready to be distributed, it can then be saved as a JPEG, and this limits the information loss to just one generation. Furthermore, PNG does not provide a standard means of embedding Exif image data from sources such as digital cameras, which makes it problematic for use amongst photographers, especially professionals. TIFF, JPEG 2000, and DNG do support such meta data.

JPEG has historically been the format of choice for exporting images containing gradients, as it could handle the color depth much better than the GIF format. However, any compression by the JPEG would cause the gradient to become blurry, but a 24-bit PNG export of a gradient image often comes out identical to the source image, and at a small file size. As such, the PNG format is the optimal choice for exporting small, repeating gradients for web usage.

I hope that helps :)

Sigurd
May 12th, 2010, 22:03
Thanks for the reply. I'm cool on the technical specs of the graphics types. What I'm curious about is if people see the difference in game.

Guess I'll go back to png out of principle.

Valarian
May 13th, 2010, 14:22
I'd say it depends on the size of file. The portraits, tokens and icons are small files. These are probably best in PNG. Maps can get very big in PNG format. I've started using JPG in the Maps & Images folder for FGII.

Zeus
May 13th, 2010, 17:13
I personally use JPG for images, maps and portraits and PNG for tokens.

I could use PNG for portraits but as they don't require transparency and don't get scaled that significantly I prefer the smaller file size that JPG offers.