saving metadata failed: Size of Exif JPEG segment is larger than 65535 bytes
Environment/Versions
- GIMP version:
- Package: RPM and Flatpack
- Operating System: Fedora GNU/Linux
Initially saw bug in Gimp v2.10.30 from official Fedora repo Then installed latest Gimp flatpack v2.10.32 from gnome.org, bug still exists I don't have (or can't find) an RPM or Flatpak for any newer version of Gimp to try. If you have a link to an installable nightly RPM/Flatpack package, I will install and test with it.
Description of the bug
- Load JPEG image from my Canon R6 Mark II into Gimp
- Crop to square shape, adjust saturation, levels
- Export as a JPEG with default settings, 78% compression
- The following error is displayed: "Run: saving metadata failed: Size of Exif JPEG segment is larger than 65535 bytes"
- I can view the resulting JPEG in gThumb but the meta data seems to be missing
If I open the same camera JPEG file and immediately export as a JPEG without making any changes, it saves correctly with no error messages. It seems some modification I've made triggers a Gimp bug that corrupts the EXIF data.
Reproduction
Is the bug reproducible? Always for this image
Reproduction steps:
Attached test file 1 (Canon R6 Mark II JPEG file) Attached test file 2 (Gimp file containing my edited image) 3g3a0852.xcf
-
Load the attached image 3g3a0852.jpg (Canon R6 Mark II JPEG file)
-
Export as a JPEG
-
Works with no errors
-
Load the attached image 3g3a0852.xcf (Gimp file created from Canon R6 Mark II JPEG 3g3a0852.jpg)
-
Export as a JPEG
-
Exported JPEG has corrupt/missing EXIF data
Note that similar edits with other images from this camera have not resulted in corrupt JPEG exports, so there appears to be something special about either this image or about the changes I made to it in the.xcf file. …
Expected result: always export a valid JPEG file with valid EXIF data
Actual result: JPEG has corrupt or missing EXIF data
Additional information
If you have a backtrace for a crash or a warning, paste it here.