Bug 269792 - Write metadata to image doesn't save Geotags
Summary: Write metadata to image doesn't save Geotags
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Gps (show other bugs)
Version: 1.9.0
Platform: Ubuntu Linux
: NOR major
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-31 00:12 UTC by Frank Hommes
Modified: 2020-08-29 14:50 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.1.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Hommes 2011-03-31 00:12:51 UTC
Version:           1.9.0 (using KDE 4.6.1) 
OS:                Linux

My Workflow:
- Disabling saving metadata to raw
- adding geotaggs and other tags
- enabling saving metadata to raw
- selection all
- menu - Image - Saving metadata to image

This way no Geoinfo is saved to the Images.
When "saving metadata to raw" is enabled and I change a geotag it will be saved.

Frank

Reproducible: Always

Steps to Reproduce:
- Disabling saving metadata to raw
- adding geotaggs and other tags
- enabling saving metadata to raw
- selection all
- menu - Image - Saving metadata to image

Actual Results:  
No Geotags in the file

Expected Results:  
Geotags in the file :)

You normally won't see that the data is not stored in the files since they are in the database. So if you're not carefull you might loose all your geotags when you loose your database, change the program, etc. so I choose Major for the bug.
Comment 1 caulier.gilles 2011-03-31 07:17:39 UTC
Which file format do you want to manage like this ?

Gilles Caulier
Comment 2 Frank Hommes 2011-03-31 08:59:32 UTC
Nikons .nef
Comment 3 caulier.gilles 2011-03-31 09:21:33 UTC
Which Exiv2 and libkexiv2 versions you use. Go to Help/Components Info for details...

Gilles Caulier
Comment 4 Frank Hommes 2011-03-31 09:27:20 UTC
LibExiv2 0.21.1
LibKExiv2 1.2.0
Comment 5 caulier.gilles 2011-03-31 09:46:32 UTC
Ok? fine.

Please run kdebugdialog from a console and turn on digiKam and kexiv2 space.

After that, run digiKam from a console and try again to patch NEF geolocation info.  Look message printed from the console and copy and paste it here...

Gilles Caulier
Comment 6 Frank Hommes 2011-03-31 10:08:37 UTC
I did all the steps from before:

digikam(3570)/KEXIV2 KExiv2Iface::KExiv2::KExiv2Priv::saveToFile: "20110217-223211.nef" is TIFF based RAW file supported but writing mode is disabled.  Metadata not saved.
digikam(3570)/digikam (core) Digikam::DImg::load: "/usr/share/kde4/apps/digikam/data/sample-aix.png"  : PNG file identified
digikam(3570)/KIPI (general) Plugin_DebianScreenshots::setup: virtual void Plugin_DebianScreenshots::setup(QWidget*) 
digikam(3570)/digikam (core) Digikam::DigikamApp::slotKipiPluginPlug: Plugin ' "batch_border_images" ' disabled.
digikam(3570)/digikam (core) Digikam::DigikamApp::slotKipiPluginPlug: Plugin ' "batch_color_images" ' disabled.
digikam(3570)/digikam (core) Digikam::DigikamApp::slotKipiPluginPlug: Plugin ' "batch_convert_images" ' disabled.
digikam(3570)/digikam (core) Digikam::DigikamApp::slotKipiPluginPlug: Plugin ' "batch_filter_images" ' disabled.
digikam(3570)/digikam (core) Digikam::DigikamApp::slotKipiPluginPlug: Plugin ' "batch_rename_images" ' disabled.
digikam(3570)/digikam (core) Digikam::DigikamApp::slotKipiPluginPlug: Plugin ' "raw_converter_single" ' disabled.
digikam(3570)/digikam (core) Digikam::AlbumFolderViewSideBarWidget::applySettings: applying settings
digikam(3570) KWidgetItemDelegateEventListener::eventFilter: User of KWidgetItemDelegate should not delete widgets created by createItemWidgets! 
digikam(3570) KWidgetItemDelegateEventListener::eventFilter: User of KWidgetItemDelegate should not delete widgets created by createItemWidgets! 
digikam(3570) KWidgetItemDelegateEventListener::eventFilter: User of KWidgetItemDelegate should not delete widgets created by createItemWidgets! 
digikam(3570) KWidgetItemDelegateEventListener::eventFilter: User of KWidgetItemDelegate should not delete widgets created by createItemWidgets! 
digikam(3570) KWidgetItemDelegateEventListener::eventFilter: User of KWidgetItemDelegate should not delete widgets created by createItemWidgets! 
digikam(3570) KWidgetItemDelegateEventListener::eventFilter: User of KWidgetItemDelegate should not delete widgets created by createItemWidgets! 
digikam(3570) KWidgetItemDelegateEventListener::eventFilter: User of KWidgetItemDelegate should not delete widgets created by createItemWidgets! 
digikam(3570) KWidgetItemDelegateEventListener::eventFilter: User of KWidgetItemDelegate should not delete widgets created by createItemWidgets! 
digikam(3570) KWidgetItemDelegateEventListener::eventFilter: User of KWidgetItemDelegate should not delete widgets created by createItemWidgets! 
digikam(3570) KWidgetItemDelegateEventListener::eventFilter: User of KWidgetItemDelegate should not delete widgets created by createItemWidgets! 
digikam(3570) KWidgetItemDelegateEventListener::eventFilter: User of KWidgetItemDelegate should not delete widgets created by createItemWidgets! 
digikam(3570) KWidgetItemDelegateEventListener::eventFilter: User of KWidgetItemDelegate should not delete widgets created by createItemWidgets! 
digikam(3570) KWidgetItemDelegateEventListener::eventFilter: User of KWidgetItemDelegate should not delete widgets created by createItemWidgets! 
digikam(3570) KWidgetItemDelegateEventListener::eventFilter: User of KWidgetItemDelegate should not delete widgets created by createItemWidgets! 
Application asked to unregister timer 0x2100006e which is not registered in this thread. Fix application.
digikam(3570)/KEXIV2 KExiv2Iface::KExiv2::getImageOrientation: Orientation => Exif.Image.Orientation =>  8
digikam(3570)/digikam (core) Digikam::DMetadata::setImageComments: "/home/freanki/win/pics/2011/raw/20110217 - Whiskytasting/20110217-223211.nef"  ==> Comment:  QMap()
digikam(3570)/digikam (core) Digikam::DMetadata::setImageRating: Rating value to write is out of range!
digikam(3570)/KEXIV2 KExiv2Iface::KExiv2::KExiv2Priv::saveToFile: File Extension:  "nef"  is supported for writing mode
digikam(3570)/KEXIV2 KExiv2Iface::KExiv2::save: Metadata for file ' 20110217-223211.nef ' written to file.
digikam(3570)/digikam (core) Digikam::AlbumManager::slotDirWatchDirty: KDirWatch detected change at "/home/freanki/win/pics/2011/raw/20110217 - Whiskytasting"
digikam(3570)/digikam (core) Digikam::AlbumManager::slotDirWatchDirty: KDirWatch detected change at "/home/freanki/win/pics/2011/raw/20110217 - Whiskytasting/20110217-223211.nef3570"
digikam(3570)/digikam (core) Digikam::AlbumManager::slotDirWatchDirty: KDirWatch detected change at "/home/freanki/win/pics/2011/raw/20110217 - Whiskytasting/20110217-223211.nef"
digikam(3570)/digikam (core) Digikam::AlbumManager::slotDirWatchDirty: KDirWatch detected change at "/home/freanki/win/pics/2011/raw/20110217 - Whiskytasting"
digikam(3570)/digikam (core) Digikam::DImg::load: "/home/freanki/win/pics/2011/raw/20110217 - Whiskytasting/20110217-223211.nef"  : RAW file identified
digikam(3570)/KEXIV2 KExiv2Iface::KExiv2::KExiv2Priv::printExiv2MessageHandler: Exiv2 ( 2 ) :  Exif tag Exif.NikonPreview.JPEGInterchangeFormatLength not encoded
digikam(3570)/KEXIV2 KExiv2Iface::KExiv2::KExiv2Priv::printExiv2MessageHandler: Exiv2 ( 2 ) :  Exif IFD NikonPreview not encoded
digikam(3570)/KEXIV2 KExiv2Iface::KExiv2::KExiv2Priv::printExiv2MessageHandler: Exiv2 ( 2 ) :  Exif tag Exif.Photo.MakerNote not encoded
digikam(3570)/KEXIV2 KExiv2Iface::KExiv2::KExiv2Priv::printExiv2MessageHandler: Exiv2 ( 2 ) :  Exif tag Exif.NikonSi02xx.0x027a not encoded
digikam(3570)/digikam (core) Digikam::ScanControllerLoadingCacheFileWatch::slotImageChanged: 511582 "/home/freanki/win/pics/2011/raw/20110217 - Whiskytasting/20110217-223211.nef"
digikam(3570)/digikam (core) Digikam::CollectionScanner::scanAlbum: Folder does not exist or is not readable:  "/home/freanki/win/pics/2011/raw/20110217 - Whiskytasting/20110217-223211.nef3570" 
digikam(3570)/digikam (core) Digikam::CollectionScanner::scanAlbum: Folder does not exist or is not readable:  "/home/freanki/win/pics/2011/raw/20110217 - Whiskytasting/20110217-223211.nef" 

Here I enabled writing to nef again, started GPS - Edit Geolocation which always saves the metadata:

digikam(3570)/KEXIV2 KExiv2Iface::KExiv2::KExiv2Priv::saveToFile: File Extension:  "nef"  is supported for writing mode
digikam(3570)/KEXIV2 KExiv2Iface::KExiv2::save: Metadata for file ' 20110217-223211.nef ' written to file.
digikam(3570)/digikam (core) Digikam::AlbumManager::slotDirWatchDirty: KDirWatch detected change at "/home/freanki/win/pics/2011/raw/20110217 - Whiskytasting"
digikam(3570)/digikam (core) Digikam::AlbumManager::slotDirWatchDirty: KDirWatch detected change at "/home/freanki/win/pics/2011/raw/20110217 - Whiskytasting/20110217-223211.nef3570"
digikam(3570)/digikam (core) Digikam::AlbumManager::slotDirWatchDirty: KDirWatch detected change at "/home/freanki/win/pics/2011/raw/20110217 - Whiskytasting/20110217-223211.nef"
digikam(3570)/digikam (core) Digikam::AlbumManager::slotDirWatchDirty: KDirWatch detected change at "/home/freanki/win/pics/2011/raw/20110217 - Whiskytasting"
digikam(3570)/digikam (core) Digikam::DImg::load: "/home/freanki/win/pics/2011/raw/20110217 - Whiskytasting/20110217-223211.nef"  : RAW file identified
digikam(3570)/KEXIV2 KExiv2Iface::KExiv2::KExiv2Priv::printExiv2MessageHandler: Exiv2 ( 2 ) :  Exif tag Exif.NikonPreview.JPEGInterchangeFormatLength not encoded
digikam(3570)/KEXIV2 KExiv2Iface::KExiv2::KExiv2Priv::printExiv2MessageHandler: Exiv2 ( 2 ) :  Exif IFD NikonPreview not encoded
digikam(3570)/KEXIV2 KExiv2Iface::KExiv2::KExiv2Priv::printExiv2MessageHandler: Exiv2 ( 2 ) :  Exif tag Exif.Photo.MakerNote not encoded
digikam(3570)/KEXIV2 KExiv2Iface::KExiv2::KExiv2Priv::printExiv2MessageHandler: Exiv2 ( 2 ) :  Exif tag Exif.NikonSi02xx.0x027a not encoded
digikam(3570)/digikam (core) Digikam::ScanControllerLoadingCacheFileWatch::slotImageChanged: 511582 "/home/freanki/win/pics/2011/raw/20110217 - Whiskytasting/20110217-223211.nef"
digikam(3570)/digikam (core) Digikam::CollectionScanner::scanAlbum: Folder does not exist or is not readable:  "/home/freanki/win/pics/2011/raw/20110217 - Whiskytasting/20110217-223211.nef3570" 
digikam(3570)/digikam (core) Digikam::CollectionScanner::scanAlbum: Folder does not exist or is not readable:  "/home/freanki/win/pics/2011/raw/20110217 - Whiskytasting/20110217-223211.nef"
Comment 7 caulier.gilles 2011-03-31 10:14:22 UTC
Digikam::ScanControllerLoadingCacheFileWatch::slotImageChanged: 511582
"/home/freanki/win/pics/2011/raw/20110217 - Whiskytasting/20110217-223211.nef"
digikam(3570)/digikam (core) Digikam::CollectionScanner::scanAlbum: Folder does
not exist or is not readable:  "/home/freanki/win/pics/2011/raw/20110217 -
Whiskytasting/20110217-223211.nef3570"
digikam(3570)/digikam (core) Digikam::CollectionScanner::scanAlbum: Folder does
not exist or is not readable:  "/home/freanki/win/pics/2011/raw/20110217 -
Whiskytasting/20110217-223211.nef"

What is that ? 

Gilles Caulier
Comment 8 Frank Hommes 2011-03-31 10:20:22 UTC
I don't know :(

I just know, that all the other metadata can be written, just not the gps-info.

May I sent you a .nef file so that you can check for yourself?
Comment 9 caulier.gilles 2011-03-31 10:26:43 UTC
When you write geo info to NEF, do you use GPSSync kipi-plugin ? It's work ?

Note : you need to turn on write metadata to RAW file turned on for that

Gilles Caulier
Comment 10 Frank Hommes 2011-03-31 10:37:13 UTC
To add geo I choose from the menu in Digikam --> Image --> Geolocation --> Correlator or edit coordinates. I guess it's from the kipi-plugin...

I know that I need to turn on "write metadata to RAW file" to work. But its part of the metadata. Because editing 500 photos with different metadata takes some time to write to nef files. Every tag is written at once so instead of editing the raw file once with all tags, it will normally edit it every time I change a tag. Thats why I deactivate it (write metadata to RAW) at first, add all metadata (tags and geo) then activate it and choose Digikam --> Image --> Write Metadata to Image.

Since geo is a metadata it should be saved, but it's not.


But this
Comment 11 serge 2011-05-15 10:02:01 UTC
I confirm this bug (the same problem, RAW are Nikon D90 NEFs)
Comment 12 Frank Hommes 2011-06-10 16:50:02 UTC
My raw files are Nikon D90 too.
Comment 13 caulier.gilles 2011-07-06 11:22:47 UTC
We need feedback using a recent version. 2.0.0 RC is out, please test...

Thanks in advance

Gilles Caulier
Comment 14 Frank Hommes 2011-07-06 17:59:47 UTC
This time there is an error which says that digikam can't write to the file when writing to raw is disabled.
After activating metadata can be saved.

So this looks more like a workaround. Aren't geocachingdata stored in database?
Comment 15 caulier.gilles 2011-07-06 18:06:29 UTC
Geolocation is stored in digiKam DB. Yes.

error to write in RAW files must do not appears if option is disabled. Do you use 2.0.0RC ?

Gilles Caulier
Comment 16 Frank Hommes 2011-07-06 18:12:33 UTC
Yes, I'm using:
Version 2.0.0-rc
Using KDE Development Platform 4.6.2 (4.6.2)

from philipps ppa
Comment 17 caulier.gilles 2011-12-16 15:31:37 UTC
Frank,

This file still valid using digiKam 2.4 ?

Gilles Caulier
Comment 18 caulier.gilles 2012-06-22 08:50:42 UTC
Official digiKam 2.6.0 release is out since few days now :

http://www.digikam.org/drupal/node/656

Please, check if this entry still valid, or update report accordingly.

Thanks in advance.

Gilles Caulier
Comment 19 caulier.gilles 2013-11-06 17:09:56 UTC
This file still valid using last digiKam 3.5.0 ?

Gilles Caulier
Comment 20 caulier.gilles 2013-11-06 17:14:03 UTC

*** This bug has been marked as a duplicate of bug 256179 ***
Comment 21 caulier.gilles 2020-08-29 14:50:20 UTC
Fixed with #256179