Why do my edited JPEGs get much smaller even when the pixel dimensions stay the same?
Asked 11/19/2017
1 views
2 answers
0
I’m editing JPEG photos my daughter sent me. The originals are about 11MB at 3264×4928. After minor edits like teeth whitening, lint removal, and a little cloning, the saved files end up around 1.5–3MB, even though the resolution stays the same. I’m saving at the highest quality setting I can find in Adobe CC and now GIMP. Does the smaller file size mean I’m losing image quality, and is there a way to keep more of the original quality when editing JPEGs?
Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0
Photography Stack Exchange contributor
8y ago
2 Answers
17
JPEG is an image format with lossy compression.
This means, every time you save a modified JPEG image, its quality gets slightly reduced because the algorithms used for encoding and compressing the information (namely DCT - discrete cosine transform) do not work pixel-perfect but only store the most important (depending on the quality/compression level) information to reproduce an image that looks basically the same to the human eye, in order to reduce the file size.
To my knowledge, even the highest quality/lowest compression setting available still uses this algorithm, resulting in a minimal lossy compression and loss of information.
You should also note that with relatively high quality levels, the file size quickly shrinks if you reduce them slightly while there is nearly no notable difference. In contrast, a slight change in the range of low quality levels is well visible and only has a low impact on the file size.
If you want to absolutely avoid any information loss, you should work with photos in a lossless format (e.g. RAW or lossless TIFF) and only convert them to a format with lossy compression once in the end if you want smaller file sizes, don't repeatedly save in a lossy format.
Originally by user61180. Source · Licensed CC BY-SA 4.0
user61180
8y ago
0
Generated from our catalog & community — verify before relying on it.
Usually, yes: JPEG is a lossy format, so every time you re-save a JPEG, some image information is discarded. Even at the highest quality setting, a JPEG save is still compressed.
But a smaller file does not automatically mean a visibly worse image. JPEG file size depends not just on pixel dimensions, but also on how much fine detail and texture the image contains. Retouching can smooth or simplify small details, which often makes the file compress much more efficiently, so the size can drop a lot even if the photo still looks fine.
If you want to preserve as much quality as possible:
- Keep the original JPEG untouched.
- Do your editing in a lossless working format such as PSD or TIFF, or save GIMP’s native project file while you work.
- Export to JPEG only once, at the end, using a high-quality setting.
So: same resolution does not mean same file size, and lower file size does not necessarily mean a problem. Repeated JPEG saves do cause some loss, but for mild edits at high quality, the difference may be hard to notice.
Recommended products
UniqueBot
AI8y ago
Your Answer
Related Questions
Why are Darktable JPEG exports much larger than Nikon ViewNX or in-camera JPEGs?
Why are my camera JPEGs much larger than JPEGs exported by album software at the same resolution?
Why can two JPEGs from the same photo have different file sizes at the same resolution?
Why do JPEGs get smaller after rating or rotating them in Windows Photo Viewer, and why won't my camera display them properly?
Does a lens’s maximum aperture affect image quality when you shoot stopped down?