GPS data for raw files in xmp sidecar

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

GPS data for raw files in xmp sidecar

Markus Spring
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi list,
being interest in geotagging and script savvy I have a script for associating my
~ gps coordinate data with my raw image files by writing them (with
Image::ExifTool) into an XMP sidecar file. It looks like this:

<?xpacket begin='' id='W5M0MpCehiHzreSzNTczkc9d'?>
<x:xmpmeta xmlns:x='adobe:ns:meta/' x:xmptk='Image::ExifTool 7.15'>
<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
~ <rdf:Description rdf:about=''
~  xmlns:exif='http://ns.adobe.com/exif/1.0/'>
~  <exif:GPSAltitude>546962/1169</exif:GPSAltitude>
~  <exif:GPSAltitudeRef>0</exif:GPSAltitudeRef>
~  <exif:GPSImgDirection>0/1</exif:GPSImgDirection>
~  <exif:GPSImgDirectionRef>T</exif:GPSImgDirectionRef>
~  <exif:GPSLatitude>47,50.230283N</exif:GPSLatitude>
~  <exif:GPSLongitude>12,58.573992E</exif:GPSLongitude>
~  <exif:GPSMapDatum>WGS-84</exif:GPSMapDatum>
~ </rdf:Description>
~ <rdf:Description rdf:about=''
~  xmlns:photoshop='http://ns.adobe.com/photoshop/1.0/'>
~  <photoshop:City>Rott</photoshop:City>
~ </rdf:Description>
</rdf:RDF>
</x:xmpmeta>
<?xpacket end='w'?>

Now the question is: will the XMP support of future digikam versions read those
sidecar files along with the embedded exif information from the raw file?

Can I put additional, IPTC-like information about copyright and authorship as
well as geografical information (country, place of the photo) into the XMP as
well and have it honored later on in digikam?

Regards - Markus
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIBNZUxxUzQSse11ARAimiAKCGnRpv/D/5WmCUTqATjuro1mV4ggCgjBW7
KhF3jTExYqOFkc2v6ymn0gg=
=MUSJ
-----END PGP SIGNATURE-----
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: GPS data for raw files in xmp sidecar

Marcel Wiesweg
> Hi list,
> being interest in geotagging and script savvy I have a script for
> associating my ~ gps coordinate data with my raw image files by writing
> them (with Image::ExifTool) into an XMP sidecar file. It looks like this:
>
> <?xpacket begin='' id='W5M0MpCehiHzreSzNTczkc9d'?>
> <x:xmpmeta xmlns:x='adobe:ns:meta/' x:xmptk='Image::ExifTool 7.15'>
> <rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
> ~ <rdf:Description rdf:about=''
> ~  xmlns:exif='http://ns.adobe.com/exif/1.0/'>
> ~  <exif:GPSAltitude>546962/1169</exif:GPSAltitude>
> ~  <exif:GPSAltitudeRef>0</exif:GPSAltitudeRef>
> ~  <exif:GPSImgDirection>0/1</exif:GPSImgDirection>
> ~  <exif:GPSImgDirectionRef>T</exif:GPSImgDirectionRef>
> ~  <exif:GPSLatitude>47,50.230283N</exif:GPSLatitude>
> ~  <exif:GPSLongitude>12,58.573992E</exif:GPSLongitude>
> ~  <exif:GPSMapDatum>WGS-84</exif:GPSMapDatum>
> ~ </rdf:Description>
> ~ <rdf:Description rdf:about=''
> ~  xmlns:photoshop='http://ns.adobe.com/photoshop/1.0/'>
> ~  <photoshop:City>Rott</photoshop:City>
> ~ </rdf:Description>
> </rdf:RDF>
> </x:xmpmeta>
> <?xpacket end='w'?>
>
> Now the question is: will the XMP support of future digikam versions read
> those sidecar files along with the embedded exif information from the raw
> file?

About support for XMP and GPS coordinates in the database: Yes, this will be
supported in 0.10.
The problem here are the sidecar files, I dont know if they are supported yet
by libexiv2 or if there are plans for this. Actually, I dont know anything
about such files. Gilles?

What is already working is to read in a GPX file from your GPS tracker,
associate with the Geolocalization KIPI plugin and have the data in the
digikam database. (Note: All this applies to the 0.10 / KDE4 version only)

>
> Can I put additional, IPTC-like information about copyright and authorship
> as well as geografical information (country, place of the photo) into the
> XMP as well and have it honored later on in digikam?

I plan to read in some of these IPTC fields (IPTC core) into the properties
table, but the code is not yet there IIRC. In principle, it will be no
problem to support these fields and make them searchable.

>
> Regards - Markus

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: GPS data for raw files in xmp sidecar

Gilles Caulier-4
2008/4/15, Marcel Wiesweg <[hidden email]>:

> > Hi list,
>  > being interest in geotagging and script savvy I have a script for
>  > associating my ~ gps coordinate data with my raw image files by writing
>  > them (with Image::ExifTool) into an XMP sidecar file. It looks like this:
>  >
>  > <?xpacket begin='' id='W5M0MpCehiHzreSzNTczkc9d'?>
>  > <x:xmpmeta xmlns:x='adobe:ns:meta/' x:xmptk='Image::ExifTool 7.15'>
>  > <rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
>  > ~ <rdf:Description rdf:about=''
>  > ~  xmlns:exif='http://ns.adobe.com/exif/1.0/'>
>  > ~  <exif:GPSAltitude>546962/1169</exif:GPSAltitude>
>  > ~  <exif:GPSAltitudeRef>0</exif:GPSAltitudeRef>
>  > ~  <exif:GPSImgDirection>0/1</exif:GPSImgDirection>
>  > ~  <exif:GPSImgDirectionRef>T</exif:GPSImgDirectionRef>
>  > ~  <exif:GPSLatitude>47,50.230283N</exif:GPSLatitude>
>  > ~  <exif:GPSLongitude>12,58.573992E</exif:GPSLongitude>
>  > ~  <exif:GPSMapDatum>WGS-84</exif:GPSMapDatum>
>  > ~ </rdf:Description>
>  > ~ <rdf:Description rdf:about=''
>  > ~  xmlns:photoshop='http://ns.adobe.com/photoshop/1.0/'>
>  > ~  <photoshop:City>Rott</photoshop:City>
>  > ~ </rdf:Description>
>  > </rdf:RDF>
>  > </x:xmpmeta>
>  > <?xpacket end='w'?>
>  >
>  > Now the question is: will the XMP support of future digikam versions read
>  > those sidecar files along with the embedded exif information from the raw
>  > file?
>
>
> About support for XMP and GPS coordinates in the database: Yes, this will be
>  supported in 0.10.
>  The problem here are the sidecar files, I dont know if they are supported yet
>  by libexiv2 or if there are plans for this. Actually, I dont know anything
>  about such files. Gilles?
>

Well, XMP sidecar support by libexiv2 is under progress. It will be
normally implemented for next release.

>  What is already working is to read in a GPX file from your GPS tracker,
>  associate with the Geolocalization KIPI plugin and have the data in the
>  digikam database. (Note: All this applies to the 0.10 / KDE4 version only)
>
>

Yes, and here i GPS tag all my RAW files using digiKam for KDE4. This
is want mean than a little script to extract GPS info from DB will be
trivial to do fo a script guru (not me)

Gilles
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: GPS data for raw files in xmp sidecar

Gilles Caulier-4
Marcel,

I have just check Exiv2 from trunk :

- XMP sidecar is now supported.
- Photoshop PSD file (read only : Exif/IPTC/XMP extraction supported.)
- JPEG200 file (read only : Exif/IPTC/XMP extraction supported... but
who use it (:=))))
- GIF (read only image info only)
- TGA (read only image info only)
- BMP (read only image info only)

Marcel, PSD support in digiKam is very important. we only support 8
bits color depth, using QT image loader. We need a dedicated DImg
image loader to support 16 bits color depth.

About TIFF writting support : no idea yet. I CC Andreas to have more info...

Gilles Caulier



2008/4/15, Gilles Caulier <[hidden email]>:

> 2008/4/15, Marcel Wiesweg <[hidden email]>:
>
> > > Hi list,
>  >  > being interest in geotagging and script savvy I have a script for
>  >  > associating my ~ gps coordinate data with my raw image files by writing
>  >  > them (with Image::ExifTool) into an XMP sidecar file. It looks like this:
>  >  >
>  >  > <?xpacket begin='' id='W5M0MpCehiHzreSzNTczkc9d'?>
>  >  > <x:xmpmeta xmlns:x='adobe:ns:meta/' x:xmptk='Image::ExifTool 7.15'>
>  >  > <rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
>  >  > ~ <rdf:Description rdf:about=''
>  >  > ~  xmlns:exif='http://ns.adobe.com/exif/1.0/'>
>  >  > ~  <exif:GPSAltitude>546962/1169</exif:GPSAltitude>
>  >  > ~  <exif:GPSAltitudeRef>0</exif:GPSAltitudeRef>
>  >  > ~  <exif:GPSImgDirection>0/1</exif:GPSImgDirection>
>  >  > ~  <exif:GPSImgDirectionRef>T</exif:GPSImgDirectionRef>
>  >  > ~  <exif:GPSLatitude>47,50.230283N</exif:GPSLatitude>
>  >  > ~  <exif:GPSLongitude>12,58.573992E</exif:GPSLongitude>
>  >  > ~  <exif:GPSMapDatum>WGS-84</exif:GPSMapDatum>
>  >  > ~ </rdf:Description>
>  >  > ~ <rdf:Description rdf:about=''
>  >  > ~  xmlns:photoshop='http://ns.adobe.com/photoshop/1.0/'>
>  >  > ~  <photoshop:City>Rott</photoshop:City>
>  >  > ~ </rdf:Description>
>  >  > </rdf:RDF>
>  >  > </x:xmpmeta>
>  >  > <?xpacket end='w'?>
>  >  >
>  >  > Now the question is: will the XMP support of future digikam versions read
>  >  > those sidecar files along with the embedded exif information from the raw
>  >  > file?
>  >
>  >
>  > About support for XMP and GPS coordinates in the database: Yes, this will be
>  >  supported in 0.10.
>  >  The problem here are the sidecar files, I dont know if they are supported yet
>  >  by libexiv2 or if there are plans for this. Actually, I dont know anything
>  >  about such files. Gilles?
>  >
>
>
> Well, XMP sidecar support by libexiv2 is under progress. It will be
>  normally implemented for next release.
>
>
>  >  What is already working is to read in a GPX file from your GPS tracker,
>  >  associate with the Geolocalization KIPI plugin and have the data in the
>  >  digikam database. (Note: All this applies to the 0.10 / KDE4 version only)
>  >
>  >
>
>
> Yes, and here i GPS tag all my RAW files using digiKam for KDE4. This
>  is want mean than a little script to extract GPS info from DB will be
>  trivial to do fo a script guru (not me)
>
>
>  Gilles
>
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Fwd: GPS data for raw files in xmp sidecar

Gilles Caulier-4
TIFF Write support in Exiv2. This is the response from Andreas !!!

---------- Forwarded message ----------
From: Andreas Huggel <[hidden email]>
Date: 16 avr. 2008 09:55
Subject: Re: [Digikam-users] GPS data for raw files in xmp sidecar
To: Gilles Caulier <[hidden email]>


>  About TIFF writting support : no idea yet. I CC Andreas to have more info...


(private email - i think i'm not on the dk-users list)

 This morning I checked in a large update to exiv2/branches/unstable
 (where the tiff write support is being developed) which merges
 everything from the trunk to that branch.

 In other words, the dust is off, work can re-start. It's what i'm doing now.


 Andreas
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Fwd: GPS data for raw files in xmp sidecar

Marcel Wiesweg
> - XMP sidecar is now supported.
> - Photoshop PSD file (read only : Exif/IPTC/XMP extraction supported.)
> - JPEG200 file (read only : Exif/IPTC/XMP extraction supported... but
> who use it (:=))))
> - GIF (read only image info only)
> - TGA (read only image info only)
> - BMP (read only image info only)

Cool, that's enormous progress!

> >  About TIFF writting support : no idea yet. I CC Andreas to have more
> > info...
>
> (private email - i think i'm not on the dk-users list)
>
>  This morning I checked in a large update to exiv2/branches/unstable
>  (where the tiff write support is being developed) which merges
>  everything from the trunk to that branch.
>
>  In other words, the dust is off, work can re-start. It's what i'm doing
> now.

And that's even better

>
> Marcel, PSD support in digiKam is very important. we only support 8
> bits color depth, using QT image loader. We need a dedicated DImg
> image loader to support 16 bits color depth.
>

Is there a support library like for the other image formats? I think Gimp etc.
support the format, so there should be code somewhere?

Marcel
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Fwd: GPS data for raw files in xmp sidecar

Gilles Caulier-4
2008/4/16, Marcel Wiesweg <[hidden email]>:

> > - XMP sidecar is now supported.
>  > - Photoshop PSD file (read only : Exif/IPTC/XMP extraction supported.)
>  > - JPEG200 file (read only : Exif/IPTC/XMP extraction supported... but
>  > who use it (:=))))
>  > - GIF (read only image info only)
>  > - TGA (read only image info only)
>  > - BMP (read only image info only)
>
>
> Cool, that's enormous progress!
>
>
>  > >  About TIFF writting support : no idea yet. I CC Andreas to have more
>  > > info...
>  >
>  > (private email - i think i'm not on the dk-users list)
>  >
>  >  This morning I checked in a large update to exiv2/branches/unstable
>  >  (where the tiff write support is being developed) which merges
>  >  everything from the trunk to that branch.
>  >
>  >  In other words, the dust is off, work can re-start. It's what i'm doing
>  > now.
>
>
> And that's even better
>
>
>  >
>  > Marcel, PSD support in digiKam is very important. we only support 8
>  > bits color depth, using QT image loader. We need a dedicated DImg
>  > image loader to support 16 bits color depth.
>  >
>
>
> Is there a support library like for the other image formats? I think Gimp etc.
>  support the format, so there should be code somewhere?

Unforget than gimp do not support 16 bits color depth. So gimp PSD
image loader lack several informations.

Also, the only relevant code that you can found over the web come from
reverse engineering. Only old Photoshop 7.0 PSD format exist as well.
After this version adobe has
closed SDK and reversing code become really complex. Look comments
from Boud on dot.kde.org:

http://dot.kde.org/1208320878/1208328042/1208330128/

I think ImageMagick loader is fine to implement something in digiKam core :

http://www.imagemagick.org/viewvc/bin/cgi/viewvc.cgi/svn/ImageMagick/trunk/coders/psd.c?view=markup

From cinepaint :

http://cinepaint.cvs.sourceforge.net/cinepaint/cinepaint-project/cinepaint/plug-ins/psd/psd.c?revision=1.8&view=markup
http://cinepaint.cvs.sourceforge.net/cinepaint/cinepaint-project/cinepaint/plug-ins/psd_save/psd_save.c?revision=1.1&view=markup


from GraphicsMagick:

http://cvs.graphicsmagick.org/cgi-bin/cvsweb.cgi/~checkout~/GraphicsMagick/coders/psd.c?rev=1.205&content-type=text/plain

Gilles



>
>
>  Marcel
>
> _______________________________________________
>  Digikam-users mailing list
>  [hidden email]
>  https://mail.kde.org/mailman/listinfo/digikam-users
>
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users