Bug 140132 - Comments should sync to IPTC Caption First
Summary: Comments should sync to IPTC Caption First
Status: RESOLVED WORKSFORME
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Generic-MetadataEdit (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-16 00:00 UTC by Geoff King
Modified: 2018-03-23 12:08 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Geoff King 2007-01-16 00:00:59 UTC
Version:           0.9.0 (using KDE KDE 3.5.5)
Installed from:    Ubuntu Packages
OS:                Linux

Note that this is similar to bug 140070..

I have many photos that have IPTC Captions added from other programs under windows (mainly IMATCH). These contain various IPTC Captions and EXIF Descriptions, for example "Papa winter Snow".  When I Import these into Digikam the the comments dialog box contains: "LEAD Technologies Inc. V1.01". It appears that this comment was held within the Image Comments Section (is this the JFIF ?) of the file and may have been from the scanner?

In the example below I would expect Digikam to show "Papa winter Snow" in the Comments based on the IPTC Caption (or Headline), or EXIF ImageDescription.  If I open the metadata editor, the desired info is shown in the IPTC Comments, but the main comment box (right side panel) is incorrect. I used exiv2 to show below what is actually in the IPTC and EXIF.

I suggest changing the preference order in which info is imported.  
1-IPTC Caption
2 EXIF ImageDescription (or IPTC Headline)
3 Other Comment? JFIF?

Thanks for your consideration, Geoff

$ exiv2 pr -p c snow.jpg
Unsupported date format
Unsupported time format
Unsupported time format
LEAD Technologies Inc. V1.01

$ exiv2 pr -p i snow.jpg
Unsupported date format
Unsupported time format
Unsupported time format
Iptc.Application2.RecordVersion              Short       1  2
Iptc.Application2.ObjectName                 String      0
Iptc.Application2.EditStatus                 String      0
Iptc.Application2.Urgency                    String      0
Iptc.Application2.Category                   String      0
Iptc.Application2.SuppCategory               String     20  Camera Index.Unknown
Iptc.Application2.SuppCategory               String     16  File Formats.JPG
Iptc.Application2.SuppCategory               String     16  File Formats.PSD
Iptc.Application2.SuppCategory               String     10  Historical
Iptc.Application2.SuppCategory               String     22  Rolls.DVDRAW.DVDRAW019
Iptc.Application2.FixtureId                  String      0
Iptc.Application2.Keywords                   String     20  Camera Index.Unknown
Iptc.Application2.Keywords                   String     16  File Formats.JPG
Iptc.Application2.Keywords                   String     10  Historical
Iptc.Application2.Keywords                   String     22  Rolls.DVDRAW.DVDRAW019
Iptc.Application2.SpecialInstructions        String     49  Epson Perf 1660 Photo, scan of print, SCAN 200501
Iptc.Application2.DateCreated                Date        8  1930-01-01
Iptc.Application2.Program                    String      0
Iptc.Application2.ObjectCycle                String      0
Iptc.Application2.Byline                     String      0
Iptc.Application2.BylineTitle                String      0
Iptc.Application2.City                       String      0
Iptc.Application2.ProvinceState              String      0
Iptc.Application2.CountryCode                String      0
Iptc.Application2.CountryName                String      0
Iptc.Application2.TransmissionReference      String      0
Iptc.Application2.Headline                   String     16  Papa winter Snow
Iptc.Application2.Credit                     String      0
Iptc.Application2.Source                     String      0
Iptc.Application2.Copyright                  String      0
Iptc.Application2.Caption                    String     16  Papa winter Snow
Iptc.Application2.Writer                     String      0


$ exiv2 pr -p t snow.jpg

Unsupported date format
Unsupported time format
Unsupported time format
Exif.Image.ImageDescription                  Ascii      17  Papa winter Snow
Exif.Image.Orientation                       Short       1  top, left
Exif.Image.XResolution                       Rational    1  1200
Exif.Image.YResolution                       Rational    1  1200
Exif.Image.ResolutionUnit                    Short       1  inch
Exif.Image.Software                          Ascii      27  Adobe Photoshop CS Windows
Exif.Image.DateTime                          Ascii      20  2005:01:14 22:09:56
Exif.Image.ExifTag                           Long        1  110
Exif.Photo.ExifVersion                       Undefined   4  48 50 50 49
Exif.Photo.ComponentsConfiguration           Undefined   4  YCbCr
Exif.Photo.FlashpixVersion                   Undefined   4  48 49 48 48
Exif.Photo.ColorSpace                        Short       1  Uncalibrated
Exif.Photo.PixelXDimension                   Short       1  2836
Exif.Photo.PixelYDimension                   Short       1  5052
Exif.Photo.InteroperabilityTag               Long        1  280
Exif.Iop.InteroperabilityIndex               Ascii       4  R98
Exif.Iop.InteroperabilityVersion             Undefined   4  48 49 48 48
Comment 1 Geoff King 2007-01-20 04:32:08 UTC
I was able to work around my problems by manually deleting the 'Jpeg Comment' using exiv2 commands such as (exiv2 -dc test.jpg), then removing and re-importing the files into digikam.  However, I still think the import order deserves some consideration at some point. 
BTW - Digikam is looking great these days with all the recent updates in 0.9.1-beta
Comment 2 Geoff King 2007-01-26 02:16:15 UTC
Since I was able to solve my own problem with the workaround above, I'm marking this resolved.