Bug 140070 - Comment display field is only populated with JFIF comment, not EXIF comment
Summary: Comment display field is only populated with JFIF comment, not EXIF comment
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Exif (show other bugs)
Version: 0.9.0
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-14 18:33 UTC by Jim Van Donsel
Modified: 2021-04-25 08:28 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 7.3.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Van Donsel 2007-01-14 18:33:38 UTC
Version:           0.9.0 (using KDE Devel)
Installed from:    Compiled sources
OS:                Linux

Currently, if a JPG image has a JFIF comment, but no EXIF comment, then digikam will display the comment correctly, and any changes will be written to both the JFIF and EXIF fields, which is good.

But if an image has an EXIF comment but no JFIF comment, digikam displays no comment.  If a comment is added in digikam, it is correctly written to both fields.

I propose that if either the JFIF field or the EXIF field is non-empty, digikam should display either comment.  If they are both populated and they match, then the comment should also be displayed.  If they are both populated and they don't match, digikam should pick one for display, or display both.
Comment 1 caulier.gilles 2007-01-14 19:14:44 UTC
Jim,

No. If JFIF comments is empty, digiKam will parse Exif Comments instead, and if Exif Comments is empty, it will parse IPTC caption.

I suspect than your picture have something in JFIF section but an un-decodable content. It's an another problem.

JFIF content to decode is not a simple formated text...

Can you post a picture sample to test on my computer. Thanks in advance

Gilles Caulier



Comment 2 Jim Van Donsel 2007-01-14 20:21:36 UTC
Hmmm. Something else is going on here.  I now think this is actually a bug somewhere in digikam.

Within an existing album I made a copy of the image (with a simple command line cp) and refreshed the album in digikam. The original image still did not display the comment but the copy displayed it correctly!

This album may have been originally created with the previous release of digikam, if that makes any difference.  
Comment 3 caulier.gilles 2007-01-14 20:50:42 UTC
Jim,

Yes. If pictures have already recorded in digiKam database, it will not re-parse this one, only the new files will be parsed.

I have planed to do a batch tool to updated database in background with pictures metadata contents. This is mandatory since 0.9.0 have been very improved against 0.8.x about metadata management. If i remember, there is alaready a file in B.K.O about this subject.

Gilles
Comment 4 Jim Van Donsel 2007-01-14 22:38:16 UTC
Gilles,

You're correct. I deleted and recreated the database and everything is OK.  So your background db update sounds like it will eliminate the problem.

Nice app. Keep up the good work.

-jim
Comment 5 caulier.gilles 2007-01-15 07:27:38 UTC
Ok. I close the file now.

Gilles
Comment 6 caulier.gilles 2021-04-25 08:28:50 UTC
Problem is no longer reproducible with digiKam 7.3.0 and Exiv2 0.27.4