Announcement

  •  » Requests
  •  » From Digikam-users mailing-list ...

Notice: Undefined variable: post_infos_of in /var/www/piwigo.org/forum/include/functions_parser.php on line 138

#1 2009-12-19 13:23:30

tosca
Former Piwigo Team
Cévennes (France)
2006-09-23
567

From Digikam-users mailing-list ...

There seem to be some people here, that I know from somewhere else ;)

I would like to bring to your attention the following message that just came through the Digikam-users mailing-list.
Several people (I being one of them) have already answered they would be very interested in an export solution from Digikam to Piwigo.
In fact, I already said so a few days ago on the french forum: post:125323 , but got no answer yet.

Edit: I'm afraid the automatic link doesn't work, so the full URL to my previous post is: http://fr.piwigo.org/forum/viewtopic.ph … 23#p125323

======== message to Digikam-users mailing-list ============

Hello :-)

Is there soewhere a tutorial about how to make an export filter?

I use now piwigo and would like to make an export filter for it. I use
now a simple sh script that works, so it should be quite easy.

however I wonder if there is some sort of tree normalisation and photo
naming available.

I notice export to html uses the same path for full image and
thumbnail, but keep the original image name, while adding some to it,
export as flash uses simpleviewer and rename all the photos with
numbers as filenames.

piwigo (ex phpwebgallery, one of the better gallery available) uses
reduced size files on the main folder and subfolders with full images
(piwi_high) and an other for thumbnails (thumnail).

All this makes it very difficult to sync various (all opensource) systems

is there any normalization project?

If there is none, as Linux Documentation project coordinator I could
at least try to write a HOWTO recalling all the present systems in aim
of some sort of exchange filters

what do you think?

thanks
jdd

Last edited by tosca (2009-12-19 13:30:28)


My galleries : Photos, Watercolours, Recipes

Offline

 

#2 2009-12-19 15:53:52

tosca
Former Piwigo Team
Cévennes (France)
2006-09-23
567

Re: From Digikam-users mailing-list ...

Some more information ... here comes the answer of the project manager :

==================================================

All export tools are located in kipi-plugins project, managed by digiKam team.

kipi-plugins are ... plugins... as well. there are fully undependant
of digiKam and are shared with gwenview and kphotoalbum.

kipi-plugins are fully implemented in C++.

Please fill a whish in KDE bugzilla, in kipi-plugins section :

http://www.digikam.org/drupal/support

Gilles C...


My galleries : Photos, Watercolours, Recipes

Offline

 

#3 2009-12-23 00:44:11

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: From Digikam-users mailing-list ...

So here is the thread on Digikam-users mailing-list : export filter and file name/position normalization

On 2009-03-18 (yes, that was 9 months ago) I've discussed with Gilles Caulier (Digikam project leader) about an export script to Piwigo. He gave me some directions (I think there is no problem to copy/translate from french what he answered me:)

Gilles Caulier wrote:

plg wrote:

I would like to start a "Piwigo export" plugin, but I don't know how to start.

There is no up to date tutorial currently. API are fully documented and the source code of existing plugins should be enough. In fact it's rather simple because the plugin creation is made of 15/20% by communication with remote application. The remaining 80% are GUI and low level code.

To communicate with the remote application, there is a library: libkipi. The code is here:
http://websvn.kde.org/trunk/KDE/kdegrap … i/libkipi/

Take a look at header files, it is documented with Doxygen.

As a reference, look at a simple plugin such as TimeAdjust :
http://websvn.kde.org/trunk/extragear/g … imeadjust/

You need:

- CMakeLists.txt to compile. Rename what's relevant with the name of your plugin.

- the "desktop" file. Just change the name of your plugin.

- message.sh, to export strings for localization purpose

- plugin_timeadjust .cpp : this is where you declare how to load your plugin to the host. There is an action that will be loaded in the menus. This function will open the plugin dialog window.

All what remains is specific code which call the Kipi API to get the photo for upload. That's all.

Look at the code of "Facebook export", "SmugMug export" or "FlickR export". They are clean.

Those 3 plugins use a common widget to display the list of photos to upload:
http://websvn.kde.org/trunk/extragear/g … piplugins/

imagelist.cpp is your friend. Very easy to use.

If you need help, please let me know... You can use the mailing-list kde-imaging/kde.org. There are other developers.

Unfortunately, because I had higher priorities, I did not investigate any further on Digikam. It does absolutely not mean that I'm not interested, we just wanted to provide a better pLoader first.

"Digikam export" is still not my top priority BUT if some coders are interested on the C++ side, I will provide the most serious and detailed help on "how to use Piwigo API for adding photos".

What jdd proposes in [Forum, topic 15583] bash script to create images, thumbnails and folders and copied in the Digikam-users mailing-list is not the recommended method for remotely adding photos into Piwigo. The recommended method is to use Piwigo API, pwg.images.add, pwg.images.setInfo, and so on. I'll post a message to let him know about that.

Offline

 

#4 2009-12-23 08:12:37

tosca
Former Piwigo Team
Cévennes (France)
2006-09-23
567

Re: From Digikam-users mailing-list ...

plg wrote:

"Digikam export" is still not my top priority BUT if some coders are interested on the C++ side, I will provide the most serious and detailed help on "how to use Piwigo API for adding photos".

Unfortunately, I don't know anything about C++, API and the like ;)


My galleries : Photos, Watercolours, Recipes

Offline

 

#5 2009-12-23 09:02:50

jdd
Member
Toulouse (France)
2009-12-19
118

Re: From Digikam-users mailing-list ...

What jdd proposes in [Forum, topic 15583] bash script to create images, thumbnails and folders and copied in the Digikam-users mailing-list is not the recommended method for remotely adding photos into Piwigo. The recommended method is to use Piwigo API, pwg.images.add, pwg.images.setInfo, and so on. I'll post a message to let him know about that.

I just read this, but don't understand. The piwigo documentation says that one have to upload with ftp, so do I :-(

thanks
jdd

Offline

 

#6 2009-12-23 12:06:17

jdd
Member
Toulouse (France)
2009-12-19
118

Re: From Digikam-users mailing-list ...

After reading again the doc, I just notice my script is better than the proposed one for Linux (PhpWebGallery_create), but in fact my solution can be added (I ad the same problem of resize of the portrait/landscape photos) - it's simply enough to add a square definition to convert: 800x800 and not 800x600 :-) (same for TN).

I just have to add some way to upload the low definition  photos seprately from the high ones (too long :-)  and to make a link to high res in place of copying them
jdd

Offline

 

#7 2010-02-13 01:27:53

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: From Digikam-users mailing-list ...

A Digikam plugin is under preparation, see [extension by fcoiffie] piwigoexport, here comes a few screenshots :-)

Offline

 

#8 2010-02-13 08:21:49

jdd
Member
Toulouse (France)
2009-12-19
118

Re: From Digikam-users mailing-list ...

excellent, thanks

Last edited by jdd (2010-02-13 10:39:18)

Offline

 

#9 2010-02-25 20:59:38

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Offline

 
  •  » Requests
  •  » From Digikam-users mailing-list ...

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact