Is it possible to write a plugin for Digikam for personal use, like a
Firefox extension, without recompiling Kipi? Specifically, we mark photos to upload to a website. I need to make two copies of each image (one 160x120px and the second 640x480px) and upload them via ssh or ftp to a remote server. Is this possible? If this is not possible, then I could write a bash script to do it if there is a way to read the digikam tags via bash (or better yet, Python). Thanks in advance. -- Dotan Cohen http://what-is-what.com http://gibberish.co.il _______________________________________________ Digikam-users mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-users |
Well one way to read digikam tags is to query the database. There are a lot of
ways to do this in python. In digiKam 0.11 the Batch Queue Manager could be used to create two copies of your images. A custom command can be used (at least it is planned) so you could also add some ftp command to the batch queue. I think a kipi-plugin would be overkill, but if you want to do so: Just copy an existing plugin into a new folder, change it to fit your needs and finally copy this plugin into your system folder (make && make install). We don't have a tutorial for this, but actually it is really simple if you know C++. Andi On Friday 24 April 2009 20:12:55 Dotan Cohen wrote: > Is it possible to write a plugin for Digikam for personal use, like a > Firefox extension, without recompiling Kipi? > > Specifically, we mark photos to upload to a website. I need to make > two copies of each image (one 160x120px and the second 640x480px) and > upload them via ssh or ftp to a remote server. Is this possible? > > If this is not possible, then I could write a bash script to do it if > there is a way to read the digikam tags via bash (or better yet, > Python). Thanks in advance. _______________________________________________ Digikam-users mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-users |
2009/4/24 Andi Clemens <[hidden email]>:
> Well one way to read digikam tags is to query the database. There are a lot of > ways to do this in python. > > In digiKam 0.11 the Batch Queue Manager could be used to create two copies of > your images. > A custom command can be used (at least it is planned) so you could also add > some ftp command to the batch queue. > > I think a kipi-plugin would be overkill, but if you want to do so: > Just copy an existing plugin into a new folder, change it to fit your needs > and finally copy this plugin into your system folder (make && make install). > > We don't have a tutorial for this, but actually it is really simple if you > know C++. > I don't know C++ but I am getting into Python. I suppose that I could modify an existing plugin without knowing C++ specifically. I did not realize that individual plugins could be compiled separately, and I do _not_ want to patch Kipi. When is the planned custom command for FTP expected to hit production? Thanks! -- Dotan Cohen http://what-is-what.com http://gibberish.co.il _______________________________________________ Digikam-users mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-users |
On Friday 24 April 2009 20:31:13 Dotan Cohen wrote:
> > When is the planned custom command for FTP expected to hit production? > While waiting for official release of 0.11 I you can try quick and dirty way: Write you script for what you want to do and add this to KDE MIME system for appropriate file type and use it with Open with... context menu option. m. _______________________________________________ Digikam-users mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-users |
> While waiting for official release of 0.11 I you can try quick and dirty way:
> > Write you script for what you want to do and add this to KDE MIME system for > appropriate file type and use it with Open with... context menu option. > That would be a clever solution if we were only dealing with one or two photos, however, there are tens of them. But clever nonetheless! -- Dotan Cohen http://what-is-what.com http://gibberish.co.il _______________________________________________ Digikam-users mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-users |
I have added a method to use custom applications in Open With dialog, it is
already in SVN. So you simply could select your tag, hit CTRL+A, right click and use "Open With"... Well in theory it should work. Andi On Saturday 25 April 2009 09:48:23 Dotan Cohen wrote: > > While waiting for official release of 0.11 I you can try quick and dirty > > way: > > > > Write you script for what you want to do and add this to KDE MIME system > > for appropriate file type and use it with Open with... context menu > > option. > > That would be a clever solution if we were only dealing with one or > two photos, however, there are tens of them. But clever nonetheless! _______________________________________________ Digikam-users mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-users |
In reply to this post by Dotan Cohen
On Friday 24 April 2009 20:31:13 Dotan Cohen wrote: > When is the planned custom command for FTP expected to hit production? Well like always in the wonderful world of Open Source: It's done when it's done :-) Andi _______________________________________________ Digikam-users mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-users |
In reply to this post by Dotan Cohen
On Saturday 25 April 2009 09:48:23 Dotan Cohen wrote:
> > Write you script for what you want to do and add this to KDE MIME system > > for appropriate file type and use it with Open with... context menu > > option. > > That would be a clever solution if we were only dealing with one or > two photos, however, there are tens of them. But clever nonetheless! Sorry, don't remember and cannot test at the moment. Isn't "Open with" working with multiple images? Group/filter your images, Ctrl+A, right click, Open with... . m. _______________________________________________ Digikam-users mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-users |
On Saturday 25 April 2009 11:08:01 Mikolaj Machowski wrote: > Sorry, don't remember and cannot test at the moment. Isn't "Open with" > working with multiple images? Group/filter your images, Ctrl+A, right > click, Open with... . It is since a few days. Before we had just disabled the menu entry. This was because we had not used the services architecture properly. We just took the first selected image and decided what application can open these file types. But this is the wrong way to do it. If you select more then one image, chances are that you can not open all selected files in the application. So what we did was disabling the menu entry on multiple selection. Now we have a different approach (like dolphin and gwenview does, too). Generate a query for all selected mimetypes and provide applications that can handle all those mime types. If none can be found, open the "Open with" application dialog, where you can choose the app to work with by yourself. Andi > > m. > _______________________________________________ > 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 |
In reply to this post by Bugzilla from andi.clemens@gmx.net
> I have added a method to use custom applications in Open With dialog, it is
> already in SVN. > So you simply could select your tag, hit CTRL+A, right click and use "Open > With"... Well in theory it should work. > Thanks, Andi, when I get a chance to check out SVN I will give it a try. I don't know when that will be, though. > Well like always in the wonderful world of Open Source: > It's done when it's done :-) I was afraid of that! -- Dotan Cohen http://what-is-what.com http://gibberish.co.il _______________________________________________ Digikam-users mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-users |
Free forum by Nabble | Edit this page |