digikam silently trashes tif files when metadata is written. Observed by STEPS TO REPRODUCE 1. With metadata writing enabled add a face tag to a tif file produced by photoshop which contains photoshop layer tags. OBSERVED RESULT The file is re-written with photoshop layers removed. I only observed when loading into photoshop the layers were gone. I don't know if other tags were removed. Layer tags are often large (100MB+) which may be relevant. I only noticed the problem when updating a back up copy of some files and saw some file were 100MB+ smaller. Lucky I noticed before trashing the backups as well. EXPECTED RESULT Digikam not destroy parts of my tif files. SOFTWARE/OS VERSIONS Windows: 10
Have you enabled writing with ExifTool in the digiKam settings under Metadata? If not, please enable writing with ExifTool and test again. We urgently need a sample TIFF file with which the problem can be reproduced. Maik
exiftool metadata writing is not enabled (didn't try with it enabled). Write this information to Metadata - all options checked. https://mega.nz/file/Zoo0UJJT#BkKuchK4yy6iiHcCtgyEJRgQy6qhnDVu_I2CSvXlqDc Scan for faces in this image. Name the face and the 412MB tif file is silently replaced by a 37MB file.
Thanks for the sample image. Enabling writing of metadata with ExifTool helps, and it is best to also enable reading. Exiv2 has a problem with the image: Exiv2 ( 3 ) : Directory Image, entry 0x935c has invalid size 384000092*1; skipping entry. Maik
@digbugs The problem is located in libexiv2 shared library. Please report it as a UPSTREAM bug to the Exiv2 issues pool in github project, attaching the problematic file and explaining the context. https://github.com/Exiv2/exiv2/issues Thanks in advance Gilles Caulier
I don't have a github account (the last one I created was shadow banned for using a VPN or something). Maybe you could post there a link to this thread.
The problem can also be reproduced with the CLI tool from Exiv2. Simply setting a dc.subject tag reduces the size to around 36MB. exiv2 -M"set Xmp.dc.subject Test" Test.tif Maik
I just see that someone has created a bug report on Exiv2 with exactly this problem. https://github.com/Exiv2/exiv2/issues/3071 Maik
Hi, digiKam 8.6.0 is just released: https://www.digikam.org/news/2025-03-15-8.6.0_release_announcement/ Problem still exists with this version? Thanks in advance Gilles Caulier
Hi, The digiKam 8.7.0 pre-release for Windows have been rebuild from scratch today with many improvements and updates. Please test with this version to see if the problem is reproducible. Link to download: https://files.kde.org/digikam/ Thanks in advance Gilles Caulier