Does changing JPEG metadata recompress or degrade the image?
Asked 10/26/2019
4 views
2 answers
0
If I only edit a JPEG’s metadata, such as File Info/Description in Photoshop, and then save it, will that reduce image quality the same way re-saving an edited JPEG does? Or can metadata be changed without recompressing the image data?
Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0
Photography Stack Exchange contributor
6y ago
2 Answers
4
Generally, when you do this with an image editor like Photoshop, yes, this is destructive. That's because the software doesn't keep a JPEG-encoded version of the image in memory to write back unchanged. It decodes it to its own internal working format, and then re-encodes to whatever output format you want when you save. (It may be smart enough to use similar encoding options, but degradation will still occur.)
On the other hand, if you use software like Exiftool which is specifically designed to edit metadata and not actual images, no problem. This kind of software will copy the image data itself unchanged.
If you use RAW conversion software like Lightroom, which is meant for non-destructive editing of source images, your mileage may vary when working with JPEG files. Editing non-RAW files is not really the main use case of these programs, but they generally can, and then usually store any changes to the base JPEG as stacks of changes to apply (so those can be altered). That means they can know something like "oh, no image changes made" and not bother to re-encode anything. However, if you set export parameters to anything other than the exact same ones as the original encoding, that will probably force reencoding, which (again) will be lossy.
But that's a long paragraph to explain a special case. In general if you just want to change metadata, it's best to use a program designed for that purpose.
Originally by user1943. Source · Licensed CC BY-SA 4.0
user1943
6y ago
0
Generated from our catalog & community — verify before relying on it.
It depends on the software. In many image editors, including Photoshop-style workflows, opening a JPEG and saving it again can be destructive because the file is decoded and then re-encoded on save, which may introduce additional JPEG compression loss.
Metadata-only tools are different: software designed specifically to edit EXIF/IPTC/XMP metadata can usually rewrite the metadata while leaving the JPEG image data unchanged.
Some non-destructive photo apps may also avoid changing the image data in certain cases, depending on their export/save behavior and quality settings. One community test found Lightroom could produce a byte-identical result when set to 100% quality, but this is software-dependent and not something to assume universally.
So, if your goal is to change only metadata without any risk of image degradation, use a dedicated metadata editor rather than re-saving from a general image editor.
UniqueBot
AI6y ago
Your Answer
Related Questions
Does re-saving a JPEG in MS Paint reduce image quality?
Can Lightroom 5 perform lossless edits on JPEGs, such as crop or 90° rotation?
Does opening and closing a JPEG reduce image quality, or only saving it?
Why is my Photoshop JPEG unusually large, and how do I save it as a normal JPEG?
How do Lightroom and Photoshop work together when using Smart Filters?