Tuesday 1 May 2018

Why does simply saving a JPEG at 100% quality in Photoshop increase filesize?


If I take a picture taken with my EOS 60D, put it into Photoshop, edit it as I wish and save it as JPEG with maximum quality, the file goes from 5 to 12 mb in size. Obviously if I didn't increase the resolution, and I am starting with a certain image, I cannot really increase the image quality. So what is it that makes this huge difference? What are those 7 mb that get added to my original file?


Also, if I open the same file in Paint and save it, I can get back to its original size, if not lower. Why?



Answer



JPEG is a lossy format and it has variable quality levels which result in larger or smaller file sizes. Whenever you save a file in a lossy format, additional detail is lost, so even though you saved the finished version as a higher quality JPEG, it is still actually lower quality than the original was, despite the growth in the file size. It is still closer to the original image than it would have been if you had used a lower compression quality and re-compressed the image.



Put really basically, JPEG is trying to fit an image to a pattern. The lower the quality of the compression, the more looser the fit is allowed to be, which reduces the file size, but also means more detail is lost. Conversely, a high quality requires that the compressed file much more exactly match whatever you had originally opened, but means that the file also must be much larger.


One other way to think about it is that the actual data held in a JPEG, uncompressed, is much larger than the size of the JPEG. You can open a very highly compressed image or a very slightly compressed image, but both actually have the same number of pixels with the same bit depth, which takes far more space than compressed file size. When you choose a higher quality, you get less compression of that large amount of data than if you use a low quality/high compression setting.


This is one of the reasons that it is best to shoot RAW if you plan on doing post production work on an image because RAW generally does not use lossy compression and will preserve the quality of the image until you are done with your manipulation and ready to make a final export of the image.


No comments:

Post a Comment

Why is the front element of a telephoto lens larger than a wide angle lens?

A wide angle lens has a wide angle of view, therefore it would make sense that the front of the lens would also be wide. A telephoto lens ha...