Welcome to Eyes on FF!
>>> Click here to download Final Fantasy Ringtones
Oh no!
 

Post New Thread  Reply
 
LinkBack Thread Tools
o_O
Site Staff
nerd
o_O's Avatar
Location: New Zealand
#17
Default

Did you also check the filesize of the same image data compressed as a JPG?

Here's a little experiment I did. Below are three images of a ball that I made in Photoshop, then saved with different compression to compare size and quality.

PNG imageThe first image is a control image, in PNG format. The filesize is 20.25KB, and it is saved without interlacing.
JPG image with similar filesize to PNG imageThis image is a JPG image saved with the aim of having the same filesize as the PNG file. Notice that there are serious artifacts around the edge of the ball, where I applied a gaussian blur, and around the edge of the specular light reflection. There is significant banding across the ball as well, where it should be a smooth gradient.
JPG image with similar quality to PNG imageThis image is a JPG saved with the aim of being of ostensibly similar quality to the PNG. It was saved at the highest quality allowed with Photoshop. In spite of this, there is still significant banding across the ball, and artifacts are present around the edge and on the reflection, though greatly reduced. Additionally, the filesize is 33.15KB, which is larger than the PNG by a factor of around 1.64.


Clearly, the PNG format is superior here. Something to note is that the image contains very few colours (indeed only one - red).
My next test is of an image of a different nature. It only needs a comparison between two images to draw conclusive results.

PNG imageHere we have a lovely image of Spiderman in PNG format. It has a filesize of 153.83KB.
JPG imageThis is the same image, saved in JPG, at the maximum quality allowed by Photoshop. Despite this, the filesize of this file is 109.32KB - That's smaller than the PNG by a factor of about 0.71. You can easily see that there is no appreciable difference in quality here.


We can clearly see that in the second image, JPG is clearly the superior format.

This enables me to illustrate the conclusion I was hoping for:
- The palette-based nature of the PNG format makes it great for images that contain a low amount of colours, since the header of the file can be minimised in size. Its compression algorithm is also very good for preserving gradients. The first image satisfied both of these qualities. When we tested the second image, we found a much greater filesize, since the header of the file needs to store information about every colour that is present in the image.
- The JPG format failed big time on the first image. You can readily see how banding occurs: the grid which the image is divided up into is averaged out to produce a single colour for each block of the image. The gradient is vertical, so tracing the grid blocks horizontally across the ball gives you the same average for any row of blocks. Therefore, the constant colors turn the gradient into a stepped pattern loosely matching the original gradient. The second image, however, is perfect for JPG, since the grid blocks don't contain very uniform image data. The filesize is lower than the PNG because it doesn't care about the palette, ie. more colours is no hinderance.

P.S. Ignore that red circle on the Spiderman image.
Old 01-23-2008, 12:24 PM
Reply With Quote
o_O is offline  
Mirage
bot
Mirage's Avatar
Location: Interconnected tubes
Default

Yes, actually, I did. In JPEG at high quality (75% if you use save for web, probably around 9-10 if you use the regular save as feature), the picture was about 3.7 MB, I was only able to tell any differences when I repeatedly switched between the two, and it was usually just a some displaced pixels in noisy areas of the image. Keep in mind that this was a high res scanned image from a CD cover, and therefore there were rather big amounts of noise, but in return there weren't as many different colours as in a regular photograph.

I was going to do some more tests by using my camera and save the images as raw, uncompressed data, but I can't find the battery charger ;/.

Last edited by Mirage; 01-23-2008 at 12:55 PM.
Old 01-23-2008, 12:41 PM
Reply With Quote
Mirage is offline  
Serapy
Default

Gif's are good for animation and stuff but the quality sucks pretty bad for non moving images.
It's actually good. As a matter of fact, you can control how graphic should look in a GIF format, basically making sure that your created graphic match the capabilities of the GIF format and it will, of course, look brilliant. If your graphic were originally for higher capabilities than GIF, and when you converted that graphic to GIF, it will look bad.

For sigs and avatars, I prefer GIF than PNG because PNG uses more memory.

PNG and JPEG are not that of a big difference execpt in some situations, but generally even if there was, it's quite subtle to see it.

Last edited by Serapy; 01-23-2008 at 07:42 PM.
Old 01-23-2008, 07:37 PM
Reply With Quote
Serapy is offline  
o_O
Site Staff
nerd
o_O's Avatar
Location: New Zealand
Default

The main difference between JPEG and PNG (or GIF) is the way they deal with the image data. PNG uses a palette and JPEG samples the image in blocks. It leads to quite substantial differences in quality. Take an avatar, for example, back when you could only have it at a size of 60x60. If you had small text on it, you could pretty much forget about being able to read it in a JPEG, while in a PNG or GIF it would be clear.

You're right in saying that it's generally not appreciably different though. Between all of the image formats discussed in this thread, there aren't really any serious differences in quality or viewing experience as far as distribution on the internets goes. It's when you introduce formats like PSD, AI, SVG or EPS that you see real differences.
Old 01-23-2008, 09:18 PM
Reply With Quote
o_O is offline  
rubah
Site Staff
Cid's Knight
I am not a committee!
rubah's Avatar
Location: Don't forget you're not alone
Default

Originally Posted by Serapy ^
Gif's are good for animation and stuff but the quality sucks pretty bad for non moving images.
It's actually good. As a matter of fact, you can control how graphic should look in a GIF format, basically making sure that your created graphic match the capabilities of the GIF format and it will, of course, look brilliant. If your graphic were originally for higher capabilities than GIF, and when you converted that graphic to GIF, it will look bad.

For sigs and avatars, I prefer GIF than PNG because PNG uses more memory.

PNG and JPEG are not that of a big difference execpt in some situations, but generally even if there was, it's quite subtle to see it.
Show me a 256 color GIF, and odds are I can show you a 256 color PNG that is smaller xD
Old 01-23-2008, 11:08 PM
Reply With Quote
rubah is online now  
Evastio
Sadness Stained
Evastio's Avatar
Location: Wallowing in Despair
Default

Thanks for the comparison pictures o_O!!!

That explains why it was so hard to use the flood fill tool on a hand drawn paint image I made after I saved it as a JPEG. I guess PNG is the best for not having pictures altered automatically after you save them.

Also, you basically use GIF for images without many colours and JPEG for images with a lot of colours?
Old 01-24-2008, 04:45 AM
Reply With Quote
Evastio is online now  
rubah
Site Staff
Cid's Knight
I am not a committee!
rubah's Avatar
Location: Don't forget you're not alone
Default

you use GIFs for images that move, jpegs for photographic images, and pngs for everything else>:[

your sig as a 256-color GIF or PNG:



(hint, the PNG is 10kb smaller)
Old 01-24-2008, 04:57 AM
Reply With Quote
rubah is online now  
Serapy
Default

>_> rubah When I took a SS of my whole desktop while it was in a PNG format, I saved it and checked the size -- whoa!
Old 01-24-2008, 10:09 AM
Reply With Quote
Serapy is offline  
Post New Thread  Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:17 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.0.0
Copyright ©2000 - 2007, Eyes on Final Fantasy.
Sean Robinson Design

Online Games | Scholarships | Tool Enhancers