Dear list,
I began developping an application in order to tag photos with GPS data by corellating the image exif time and the GPS information. (kGpsImageTag on kde-apps.org) I would also like to develop a plug in for digikam. Not beeing very familiar with plugins, some help would be appreciated. First, what is the plugin stucture of digikam, or if I can import a Kpart. But for both I would like some help Yours Alex _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
> Dear list,
> > I began developping an application in order to tag photos with GPS > data by corellating the image exif time and the GPS information. > (kGpsImageTag on kde-apps.org) > > I would also like to develop a plug in for digikam. > > Not beeing very familiar with plugins, some help would be appreciated. > First, what is the plugin stucture of digikam, or if I can import a > Kpart. But for both I would like some help You want to develop a kipi plugin. http://extragear.kde.org/apps/kipi/ (a bit outdated?) You can take the source from one or more plugins which are most similar to what you expect as an example. The relevant mailing list is kde-imaging, that is the best place to contact the maintainer and present your idea. There are currently some discussions about GPS tagging, http://bugs.kde.org/show_bug.cgi?id=133359 but some other people on this list are more familiar with that. Marcel > > Yours > > Alex _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by Alexios Beveratos-2
Le Samedi 16 Septembre 2006 09:33 PM, Alexios Beveratos a écrit :
> Dear list, > > I began developping an application in order to tag photos with GPS > data by corellating the image exif time and the GPS information. > (kGpsImageTag on kde-apps.org) > > I would also like to develop a plug in for digikam. > > Not beeing very familiar with plugins, some help would be appreciated. > First, what is the plugin stucture of digikam, or if I can import a > Kpart. But for both I would like some help > > Yours > > Alex Excelent ! I have prepared some stuf to do exactly the same same thing in my computer. Weel, like you have already started an implementation, it's easy to port your code on kipi. This is the link : http://www.kde-apps.org/content/show.php?content=45851 Alexios, i will take a look into your code and see what i want (about to port your code like a new kipi plugin). It's right for you ? Gilles Caulier _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
Le Lundi 18 Septembre 2006 08:59 PM, Caulier Gilles(UNTRUSTED, sender is
<digikam-devel-bounces-+caulier.gilles=[hidden email]>) a écrit : > Le Samedi 16 Septembre 2006 09:33 PM, Alexios Beveratos a écrit : > > Dear list, > > > > I began developping an application in order to tag photos with GPS > > data by corellating the image exif time and the GPS information. > > (kGpsImageTag on kde-apps.org) > > > > I would also like to develop a plug in for digikam. > > > > Not beeing very familiar with plugins, some help would be appreciated. > > First, what is the plugin stucture of digikam, or if I can import a > > Kpart. But for both I would like some help > > > > Yours > > > > Alex > > Excelent ! > > I have prepared some stuf to do exactly the same same thing in my computer. > Weel, like you have already started an implementation, it's easy to port > your code on kipi. > > This is the link : > > http://www.kde-apps.org/content/show.php?content=45851 > > Alexios, i will take a look into your code and see what i can do (:=))) sorry... > (about to > port your code like a new kipi plugin). > > It's right for you ? > Gilles _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
Dear Gilles
Sure, you can look in my code, for the moment it is a bit messy and quite rudimentary. I will try to continue develop the following days Yours Alex On 9/18/06, Caulier Gilles <[hidden email]> wrote: Le Lundi 18 Septembre 2006 08:59 PM, Caulier Gilles(UNTRUSTED, sender is _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
Le Dimanche 17 Septembre 2006 10:03 PM, Alexios Beveratos a écrit :
> Dear Gilles > > Sure, you can look in my code, for the moment it is a bit messy and quite > rudimentary. I will try to continue develop the following days ok. i will take a look in your code tomorow and give you a feedback Gilles > > Yours > > Alex > > On 9/18/06, Caulier Gilles <[hidden email]> wrote: > > Le Lundi 18 Septembre 2006 08:59 PM, Caulier Gilles(UNTRUSTED, sender is > > > > <digikam-devel-bounces-+caulier.gilles=[hidden email]>) a écrit: > > > Le Samedi 16 Septembre 2006 09:33 PM, Alexios Beveratos a écrit: > > > > Dear list, > > > > > > > > I began developping an application in order to tag photos with GPS > > > > data by corellating the image exif time and the GPS information. > > > > (kGpsImageTag on kde-apps.org) > > > > > > > > I would also like to develop a plug in for digikam. > > > > > > > > Not beeing very familiar with plugins, some help would be > > > > appreciated. First, what is the plugin stucture of digikam, or if I > > > > can import a Kpart. But for both I would like some help > > > > > > > > Yours > > > > > > > > Alex > > > > > > Excelent ! > > > > > > I have prepared some stuf to do exactly the same same thing in my > > > > computer. > > > > > Weel, like you have already started an implementation, it's easy to > > > port your code on kipi. > > > > > > This is the link : > > > > > > http://www.kde-apps.org/content/show.php?content=45851 > > > > > > Alexios, i will take a look into your code and see what i > > > > can do (:=))) sorry... > > > > > (about to > > > port your code like a new kipi plugin). > > > > > > It's right for you ? > > > > Gilles > > _______________________________________________ > > Digikam-devel mailing list > > [hidden email] > > https://mail.kde.org/mailman/listinfo/digikam-devel Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by Alexios Beveratos-2
Le Dimanche 17 Septembre 2006 10:03 PM, Alexios Beveratos a écrit :
> Dear Gilles > > Sure, you can look in my code, for the moment it is a bit messy and quite > rudimentary. I will try to continue develop the following days > Just a speed look into your code : i have seen that you have'nt use the C++ exception to control each Exiv2 call. This is wrong because your app will crash if something is wrong with exiv2. Look the DMetadata class from digiKam core for example : http://websvn.kde.org/trunk/extragear/graphics/digikam/libs/dmetadata/dmetadata.cpp?rev=576472&view=auto Also, in kipi-plugins, i have started to implemente a common exiv2 interface witch will be used by all plugins instead libkexif. I need to improve this code, but in all case, if you want to create a kipi-plugin, i think that all your code witch use exiv2 library need to be moved in this interface. Actually, the interface is only used by RAW converter. I will move this code outside this plugin. The code is very simple actually, and will be improved accordinly with all kipi-plugins requirements. http://websvn.kde.org/trunk/extragear/libs/kipi-plugins/rawconverter/exiv2iface.cpp?rev=584763&view=auto Gilles _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
Dear Gilles,
Thanks for the feedback. I know that many checks must be performed in order to be sure that the application does not crash. I will look into the dmetadata and look the kipi plugin. Alex On 9/18/06, Caulier Gilles <[hidden email]> wrote: Le Dimanche 17 Septembre 2006 10:03 PM, Alexios Beveratos a écrit: _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
Le Dimanche 17 Septembre 2006 11:22 PM, Alexios Beveratos a écrit :
> Dear Gilles, > > Thanks for the feedback. I know that many checks must be performed in order > to be sure that the application does not crash. > > I will look into the dmetadata and look the kipi plugin. Alex, About the GPS kipi-plugin, this is my proposal : 1/ This week, is will created a new kipi-plugin named 'GPSSync' (or something like that). 2/ The plugin will include the interface to get current selected images from kipi-host. 3/ The plugin will provide a KListView based list of current image with all colums informations than your GPS application provide, including the preview of images, like RAW Converter plugin do. Look on the right of this screenshot : http://digikam3rdparty.free.fr/Screenshots/newkipirawconverter.png 4/ I will add 2 new methods in the kipi-plugins Exiv2 interface to set/get GPS informations in Exif metadata. In charge for you : - to make a interface with all common GPS file data format provided by GPS devices. You have already started this job in you application. - to connect your interface in the plugin and use the kipi-plugins Exiv2 interface to set GPS informations in images. If all is right for you, you need to have a write access to KDE svn repository. Also, you need to be registred to kipi mailing list : [hidden email]. What do you thing about ? Gilles Caulier _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by Alexios Beveratos-2
Le Dimanche 17 Septembre 2006 11:22 PM, Alexios Beveratos a écrit :
> Dear Gilles, > > Thanks for the feedback. I know that many checks must be performed in order > to be sure that the application does not crash. > > I will look into the dmetadata and look the kipi plugin. Alex, About the GPS kipi-plugin, this is my proposal : 1/ This week, is will created a new kipi-plugin named 'GPSSync' (or something like that). 2/ The plugin will include the interface to get current selected images from kipi-host. 3/ The plugin will provide a KListView based list of current image with all colums informations than your GPS application provide, including the preview of images, like RAW Converter plugin do. Look on the right of this screenshot : http://digikam3rdparty.free.fr/Screenshots/newkipirawconverter.png 4/ I will add 2 new methods in the kipi-plugins Exiv2 interface to set/get GPS informations in Exif metadata. In charge for you : - to make a interface with all common GPS file data format provided by GPS devices. You have already started this job in you application. - to connect your interface in the plugin and use the kipi-plugins Exiv2 interface to set GPS informations in images. If all is right for you, you need to have a write access to KDE svn repository. Also, you need to be registred to kipi mailing list : [hidden email]. What do you thing about ? Gilles Caulier _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by Gilles Caulier-2
Gilles,
Your proposition seems very good for me. I will subscribe to kipi (how do I get a svn access ?) and begin coding. The only thing is that I do not have a lot of time, and hence it may lag a bit behind Cheers Alex On 9/19/06, Caulier Gilles <[hidden email]> wrote: Le Dimanche 17 Septembre 2006 11:22 PM, Alexios Beveratos a écrit: _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
On Tuesday 19 September 2006 14:09, Alexios Beveratos wrote:
> Gilles, > > Your proposition seems very good for me. I will subscribe to kipi ok. thanks. There is a thread started today by me about this subject. Look here: http://mail.kde.org/pipermail/kde-imaging/2006-September/003398.html > (how do I > get a svn access ?) look here : http://developer.kde.org/joining/applysvnaccount.php > and begin coding. Please wait (:=))) I 'm currently working on the new plugin implementation. Look here : http://digikam3rdparty.free.fr/Screenshots/newkipigpssyncplugin.png > The only thing is that I do not have > a lot of time, and hence it may lag a bit behind Take your time. Let's me 1 or 2 days to finalize the plugin. I have cleaned/improved your code. It's more clear. I will trying to add a generic GPS file parser class to be abble to add new GPS file formats in the future. I recommend you to study now the gpsbabel stuff... and prepare a new GPS file parser for that. If you can send me some gpspoint file to test, i will be happy. thanks in advance. Gilles _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by Alexios Beveratos-2
Alex,
Just for reading, plugin code (uncomplete) is here : http://digikam3rdparty.free.fr/misc.tarballs/gpssync.tar.gz Gilles _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by Alexios Beveratos-2
On Tuesday 19 September 2006 14:09, Alexios Beveratos wrote:
> Gilles, > > Your proposition seems very good for me. I will subscribe to kipi (how do I > get a svn access ?) and begin coding. The only thing is that I do not have > a lot of time, and hence it may lag a bit behind > > Cheers > Alex Alexios , The first implementation of the plugin is in svn. http://websvn.kde.org/trunk/extragear/libs/kipi-plugins/gpssync It's not yet complete : a GPS file data parser implementation using GPSBabel is missing ! All others part of the plugin are done. Just look my TODO/FIXME tags in the source code for details. The parser class is gpsdataparser.cpp. On this class there is a QMap container used to strore the GPS positions decoded from the GPS file accordinly with the date stamp. Just use a QMap::find() method to sync the Picture date with the GPS position... simple ! You need to help me to implement the parser using the GPSBabel program. The question is how to use properly this program. Witch GPS file format to use in input/ouput ? Gilles Caulier PS : i see your this email <alexios dot beveratos at lpn.cnrs.fr> in your exif_gps.h file. Are you a French guy ? _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
Hello Gilles
Woaa, you code much faster than I even have time to look at what you have coded. For GpsBabel. Well, normally this program can get any type of input file and output any type of output file, ranging from garmin / magellan / googleearth kmz etc file. I think there are 2 solutions 1) call externally gpsbabel, asking the input file and format. We internally transform it to (for exemple) gpspoint file (like the test exemple) and continue with the plugin 2) Re-implement gpsbabel as an external class, and we do like above. The advantage of the 1) sollution is that we can take advantage of the evolution of gpsbabel. It is "just" one more dependency. Tell me what you thing about it Alex PS : I am not french, but a greek working in Paris :-) On 9/20/06, Gilles Caulier <[hidden email]> wrote: On Tuesday 19 September 2006 14:09, Alexios Beveratos wrote: _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
Gilles
I see that you had alreadyy implemeted the 1st point. good the usage is the following gpsbabel -t -i geo -f /tmp/geocaching.loc -o gpx -F /tmp/geocaching.gpx-F : output file. It can be a tmp file I will check wich output format is the easiest to use and will tell you (I think tha gpspoint format is quite handy) Alex On 9/20/06, Alexios Beveratos
<[hidden email]> wrote:
_______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
Le Mercredi 20 Septembre 2006 05:34 PM, Alexios Beveratos a écrit :
> Gilles > > I see that you had alreadyy implemeted the 1st point. good > > the usage is the following > > gpsbabel -t -i geo -f /tmp/geocaching.loc -o gpx -F /tmp/geocaching.gpx > > -t : We would like to download track points (i am pretty sure it is > -t. otherwise it should be -w for waypoitns, but I will check) > > -i : input format. It is user selectable. > -f : the input file. it can be a /dev/gps. For exemple this works for > Garmin GPS. You can directly read > > -o : output format > > -F : output file. It can be a tmp file > > I will check wich output format is the easiest to use and will tell you (I > think tha gpspoint format is quite handy) Ok, i will implemented a basic GPSBabel interface using KProcess (like i use with dcraw in Raw Converter). There is already a GpsBabelBinary class witch detect if th eprogram is installed into the computer, and if we have the right version. The problem with gpsbabel is the inpout format recognition. We _must_ set the right inpout format before to convert data. There is no auto-detect format like with dcraw for example. I'm waiting your indeep comments about gps format investiguations. Are you get a KDE svn account ? Gilles > > Alex > > On 9/20/06, Alexios Beveratos <[hidden email]> wrote: > > Hello Gilles > > > > Woaa, you code much faster than I even have time to look at what you > > have coded. > > > > For GpsBabel. Well, normally this program can get any type of input file > > and output any type of output file, ranging from garmin / magellan / > > googleearth kmz etc file. > > > > I think there are 2 solutions > > > > 1) call externally gpsbabel, asking the input file and format. We > > internally transform it to (for exemple) gpspoint file (like the test > > exemple) and continue with the plugin > > > > 2) Re-implement gpsbabel as an external class, and we do like above. > > > > The advantage of the 1) sollution is that we can take advantage of the > > evolution of gpsbabel. It is "just" one more dependency. > > > > Tell me what you thing about it > > > > Alex > > > > PS : I am not french, but a greek working in Paris :-) > > > > On 9/20/06, Gilles Caulier < [hidden email]> wrote: > > > On Tuesday 19 September 2006 14:09, Alexios Beveratos wrote: > > > > Gilles, > > > > > > > > Your proposition seems very good for me. I will subscribe to kipi > > > > (how > > > > > > do I > > > > > > > get a svn access ?) and begin coding. The only thing is that I do not > > > > > > have > > > > > > > a lot of time, and hence it may lag a bit behind > > > > > > > > Cheers > > > > Alex > > > > > > Alexios , > > > > > > The first implementation of the plugin is in svn. > > > > > > http://websvn.kde.org/trunk/extragear/libs/kipi-plugins/gpssync > > > > > > It's not yet complete : a GPS file data parser implementation using > > > GPSBabel > > > is missing ! > > > > > > All others part of the plugin are done. Just look my TODO/FIXME tags in > > > the > > > source code for details. > > > > > > The parser class is gpsdataparser.cpp. On this class there is a QMap > > > container > > > used to strore the GPS positions decoded from the GPS file accordinly > > > with > > > the date stamp. Just use a QMap::find() method to sync the Picture date > > > with > > > the GPS position... simple ! > > > > > > You need to help me to implement the parser using the GPSBabel program. > > > The question is how to use properly this program. Witch GPS file format > > > to use > > > in input/ouput ? > > > > > > Gilles Caulier > > > > > > PS : i see your this email <alexios dot beveratos at lpn.cnrs.fr> in > > > your > > > exif_gps.h file. Are you a French guy ? > > > > > > _______________________________________________ > > > Digikam-devel mailing list > > > [hidden email] > > > https://mail.kde.org/mailman/listinfo/digikam-devel Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by Alexios Beveratos-2
Le Mercredi 20 Septembre 2006 05:21 PM, Alexios Beveratos a écrit :
> Hello Gilles > > Woaa, you code much faster than I even have time to look at what you have > coded. thanks (:=))) > > For GpsBabel. Well, normally this program can get any type of input file > and output any type of output file, ranging from garmin / magellan / > googleearth kmz etc file. > > I think there are 2 solutions > > 1) call externally gpsbabel, asking the input file and format. We > internally transform it to (for exemple) gpspoint file (like the test > exemple) and continue with the plugin yes, we will do that. > > 2) Re-implement gpsbabel as an external class, and we do like above. > no, excepted i you a a lots of free time (:=))) > The advantage of the 1) sollution is that we can take advantage of the > evolution of gpsbabel. It is "just" one more dependency. > it's not a problem. gilles _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by Alexios Beveratos-2
Le Mercredi 20 Septembre 2006 05:34 PM, Alexios Beveratos a écrit :
> Gilles > > I see that you had alreadyy implemeted the 1st point. good > > the usage is the following > > gpsbabel -t -i geo -f /tmp/geocaching.loc -o gpx -F /tmp/geocaching.gpx > > -t : We would like to download track points (i am pretty sure it is > -t. otherwise it should be -w for waypoitns, but I will check) > > -i : input format. It is user selectable. > -f : the input file. it can be a /dev/gps. For exemple this works for > Garmin GPS. You can directly read > > -o : output format > > -F : output file. It can be a tmp file > > I will check wich output format is the easiest to use and will tell you (I > think tha gpspoint format is quite handy) gpspoint format ? i can't see this format in gpsbabel doc : http://www.gpsbabel.org/capabilities.html Gilles _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by Alexios Beveratos-2
Alex,
The first beta version of the plugin is ready to use. Look my recent commit on svn : http://websvn.kde.org/trunk/extragear/libs/kipi-plugins/gpssync/?rev=587073&view=rev We don't use GPSBabel in this version. a GPX file format parser have been implemented. This will be enough. In charge for you to improve this plugin in the future, for example to use GPSBabel to convert exotic GPS data file to GPX format and imprt GPS informations to the plugin. My 10cts € Gilles On Wednesday 20 September 2006 17:34, Alexios Beveratos wrote: > Gilles > > I see that you had alreadyy implemeted the 1st point. good > > the usage is the following > > gpsbabel -t -i geo -f /tmp/geocaching.loc -o gpx -F /tmp/geocaching.gpx > > -t : We would like to download track points (i am pretty sure it is > -t. otherwise it should be -w for waypoitns, but I will check) > > -i : input format. It is user selectable. > -f : the input file. it can be a /dev/gps. For exemple this works for > Garmin GPS. You can directly read > > -o : output format > > -F : output file. It can be a tmp file > > I will check wich output format is the easiest to use and will tell you (I > think tha gpspoint format is quite handy) > > Alex > > On 9/20/06, Alexios Beveratos <[hidden email]> wrote: > > Hello Gilles > > > > Woaa, you code much faster than I even have time to look at what you > > have coded. > > > > For GpsBabel. Well, normally this program can get any type of input file > > and output any type of output file, ranging from garmin / magellan / > > googleearth kmz etc file. > > > > I think there are 2 solutions > > > > 1) call externally gpsbabel, asking the input file and format. We > > internally transform it to (for exemple) gpspoint file (like the test > > exemple) and continue with the plugin > > > > 2) Re-implement gpsbabel as an external class, and we do like above. > > > > The advantage of the 1) sollution is that we can take advantage of the > > evolution of gpsbabel. It is "just" one more dependency. > > > > Tell me what you thing about it > > > > Alex > > > > PS : I am not french, but a greek working in Paris :-) > > > > On 9/20/06, Gilles Caulier < [hidden email]> wrote: > > > On Tuesday 19 September 2006 14:09, Alexios Beveratos wrote: > > > > Gilles, > > > > > > > > Your proposition seems very good for me. I will subscribe to kipi > > > > (how > > > > > > do I > > > > > > > get a svn access ?) and begin coding. The only thing is that I do not > > > > > > have > > > > > > > a lot of time, and hence it may lag a bit behind > > > > > > > > Cheers > > > > Alex > > > > > > Alexios , > > > > > > The first implementation of the plugin is in svn. > > > > > > http://websvn.kde.org/trunk/extragear/libs/kipi-plugins/gpssync > > > > > > It's not yet complete : a GPS file data parser implementation using > > > GPSBabel > > > is missing ! > > > > > > All others part of the plugin are done. Just look my TODO/FIXME tags in > > > the > > > source code for details. > > > > > > The parser class is gpsdataparser.cpp. On this class there is a QMap > > > container > > > used to strore the GPS positions decoded from the GPS file accordinly > > > with > > > the date stamp. Just use a QMap::find() method to sync the Picture date > > > with > > > the GPS position... simple ! > > > > > > You need to help me to implement the parser using the GPSBabel program. > > > The question is how to use properly this program. Witch GPS file format > > > to use > > > in input/ouput ? > > > > > > Gilles Caulier > > > > > > PS : i see your this email <alexios dot beveratos at lpn.cnrs.fr> in > > > your > > > exif_gps.h file. Are you a French guy ? > > > > > > _______________________________________________ > > > Digikam-devel mailing list > > > [hidden email] > > > https://mail.kde.org/mailman/listinfo/digikam-devel Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
Free forum by Nabble | Edit this page |