https://bugs.kde.org/show_bug.cgi?id=423775
Bug ID: 423775 Summary: IPTC title ("Object Name") not getting truncated at 64 characters in certain situations Product: digikam Version: 6.4.0 Platform: macOS Disk Images OS: macOS Status: REPORTED Severity: normal Priority: NOR Component: Metadata-Iptc Assignee: digikam-bugs-n...@kde.org Reporter: hesyi...@gmail.com Target Milestone: --- SUMMARY IPTC title ("Object Name") is not getting truncated at 64 characters when there is an xmp file containing a long title. STEPS TO REPRODUCE 1. Add a new jpeg photo (`myimage.jpeg`) to digikam, and go to "Captions" -> "Description". 2. Enter a "Title" that is longer than 64 characters (e.g., "digiKam is an advanced open-source digital photo management application that runs on Linux, Windows, and MacOS") and click "Apply". 3.1. Use exiftool to check the image: `exiftool -G1 myimage.jpeg`. 3.2. As expected, the "[IPTC] Object Name" is truncated as 64 characters ("digiKam is an advanced open-source digital photo management appl"). 4.1. Now add a raw file with the same name to the same directory (e.g., `myimage.nef`). It doesn't matter what the raw image is. It is just used to generate a sidecar xmp file that contains a long title. 4.2. In digikam, click the raw file and add a "Title" that is longer than 64 characters ("digiKam is an advanced open-source digital photo management application that runs on Linux, Windows, and MacOS") and click "Apply". 4.3. Now we have a xmp file with the same name (e.g., `myimage.xmp`). (We can remove the raw image at this point.) 5. Go back to the jpeg file, and click "Information". Select any of the template (e.g., "To remove") and click "Apply". 6. Run the same exiftool command again: `exiftool -G1 myimage.jpeg`. OBSERVED RESULT The object name is not truncated. ``` [IPTC] Object Name : digiKam is an advanced open-source digital photo management application that runs on Linux, Windows, and MacOS ``` EXPECTED RESULT The object name should be truncated as before (in step 3.2). ``` [IPTC] Object Name : digiKam is an advanced open-source digital photo management appl ``` SOFTWARE/OS VERSIONS digikam: 6.4.0 macOS: 10.15.5 ADDITIONAL INFORMATION Notice that when you edit the "Title" again and click "Apply", the IPTC Object Name got truncated again. I discovered this bug when I was working with both raw and jpeg file and assigning the same title to both of them. For a long time I thought it was normal for the IPTC title to be longer than 64 characters, until I removed the raw file and discovered that the title got truncated (http://digikam.1695700.n4.nabble.com/digiKam-users-Embedded-IPTC-title-in-JPEG-suddenly-started-to-get-truncated-at-64-characters-td4712640.html). I think it is very confusing for the users to get this inconsistent behavior (being able to have a title that is longer than 64 characters, but got truncated with seemingly no reason later when they remove the raw file). -- You are receiving this mail because: You are watching all bug changes.