Mobile app version of vmapp.org
Login or Join
Smith574

: When resaving JPEGs, the file size increases, but the quality is not changed – why? I was experimenting with JPEG quality loss upon resaving and noticed that not only (even after four resaves)

@Smith574

Posted in: #FileFormat #FileSize #Jpg

I was experimenting with JPEG quality loss upon resaving and noticed that not only (even after four resaves) did the quality not degrade (down to pixel level), but the file sizes actually increased by 200 kb or so each time.

Can anyone give an explanation for this?
Where is this newly created information that increases the file size even coming from?
I would have expected at least slight degradation and a decrease in file size. I saved using Photoshop’s save for web function and 100 % quality.





*Original (top) - 798kb
*After 5 saves (bottom) - 1020kb

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Smith574

1 Comments

Sorted by latest first Latest Oldest Best

 

@Ogunnowo857

Reason 1: Additional Meta Data

Use a tool like ImageOptim to get rid of all meta data and check the file size again.

If all files are (quite) the same size after removing meta data, you know where the extra bytes are.

A color profile might also be part of the file and therefore add some bytes.

Reason 2: Compression Artifacts

Saving an image with JPEG compression adds artifacts to the file. Even if they are not visible in the first place, the image data is different. Compressing an image with artifacts again, generates more artifacts and so on.

In this case, JPEG compression is not as effective as with the original file. The more artifacts are contained, the bigger the file will be.

Visualization of JPEG artifacts in your image



Technical details

If you are interested in the technical details, you might want to read this article:
JPEG compression algorithm

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme