Exporting multilayer TIFF saves some layers twice when saving EXIF is checked
Version: GIMP 2.10.24, rev. 3
OS: Windows 10 Home, 64-bit.
To reproduce open the above image in GIMP 2.10.24. Since GitLab might remove metadata, first open the metadata editor and click Write Metadata.
Export and make sure saving EXIF metadata is checked.
Try to reopen this image, and it will show more pages than in the original.
Things that seem wrong:
- The open TIFF dialog will show 7 pages, all called drawing.
- Importing all pages as layers results in 6 layers loaded. The two middle layers in the original appear twice.
Console warnings:
TIFF image-Warning: Failed to allocate memory for to read TIFF directory (0 elements of 12 bytes each)
TIFF image-Warning: Failed to read directory at offset 1292
TIFF image-Warning: Incorrect count for "XPosition"; tag ignored
TIFF image-Warning: Incorrect count for "YPosition"; tag ignored
TIFF image-Warning: Failed to allocate memory for to read TIFF directory (0 elements of 12 bytes each)
TIFF image-Warning: Failed to read directory at offset 1292
TIFF image-Warning: Failed to allocate memory for to read TIFF directory (0 elements of 12 bytes each)
TIFF image-Warning: Failed to read directory at offset 1292
TIFF image-Warning: Couldn't read page 2 of 7. Image might be corrupt.
TIFF image-Warning: Corrupted LZW table at scanline 0
TIFF image-Warning: Reading scanline failed. Image may be corrupt at line 0.
TIFF image-Warning: Incorrect count for "XPosition"; tag ignored
TIFF image-Warning: Incorrect count for "YPosition"; tag ignored
TIFF image-Warning: Corrupted LZW table at scanline 0
TIFF image-Warning: Reading scanline failed. Image may be corrupt at line 0.
TIFF image-Warning: Failed to allocate memory for to read TIFF directory (0 elements of 12 bytes each)
TIFF image-Warning: Failed to read directory at offset 1292
TIFF image-Warning: Incorrect count for "XPosition"; tag ignored
TIFF image-Warning: Incorrect count for "YPosition"; tag ignored
TIFF image-Warning: Failed to allocate memory for to read TIFF directory (0 elements of 12 bytes each)
TIFF image-Warning: Failed to read directory at offset 1292
TIFF image-Warning: Failed to allocate memory for to read TIFF directory (0 elements of 12 bytes each)
TIFF image-Warning: Failed to read directory at offset 1292
TIFF image-Warning: Couldn't read page 2 of 7. Image might be corrupt.
TIFF image-Warning: Corrupted LZW table at scanline 0
TIFF image-Warning: Reading scanline failed. Image may be corrupt at line 0.
TIFF image-Warning: Incorrect count for "XPosition"; tag ignored
TIFF image-Warning: Incorrect count for "YPosition"; tag ignored
TIFF image-Warning: Corrupted LZW table at scanline 0
TIFF image-Warning: Reading scanline failed. Image may be corrupt at line 0.