Version: (using KDE KDE 3.3.2)
Installed from: Unspecified Linux
It would be a great idea to support the Coppermine Remote Access API and allow uploads to Coppermine Picture Gallery http://coppermine.sf.net. A remote access API has just been added to Coppermine.
Quote from the release
To satisfy the demand of desktop client writers we have hacked a Remote Access API for Coppermine 1.4.x which is very loosely modeled on the Flickr API (in terms of responses etc).
More details can be found at http://coppermine.sourceforge.net/board/index.php?topic=17097.msg79547#msg79547
*** This bug has been confirmed by popular vote. ***
The documentation and the example provided are not self explainatory. If you could simply provide what is the html form equalivant for the query to be submitted it would be much easier for us to proceed. (The way flickr provided their old upload example).
PS: flickr API has undergone changes from the time coppermine posted the new release :-).
As an example I am posting the html form need to submit the query to the api. The form below is used for uploading a new picture.
<form enctype="multipart/form-data" action="http://www.mysite.com/cpg/api/" method="POST">
<table border="0" cellpadding="5">
<td>Album Id: </td>
<td><input name="aid" type="text" size="5" /></td>
<td>Picture to be uploaded: </td>
<td><input name="file" type="file" /></td>
<td><input name="username" type="text" size="25" /></td>
<td><input name="password" type="password" size="25" /></td>
<td><input name="title" type="text" size="35" /></td>
<td><input name="keywords" type="text" size="35" /></td>
<td colspan="2" align="center">
<!-- The function to be used -->
<input name="function" type="hidden" value="cpgAPI.upload" /><br />
<input type="submit" value="Send File" />
When an upload is successful, the following xml is returned:
<?xml version="1.0" encoding="utf-8" ?>
...where pid is the new id of the photo.
When an upload fails, the following xml is returned:
<?xml version="1.0" encoding="utf-8" ?>
<verbose>invalid login details</verbose>
... where error is the error code.
Similarly the cpgAPI.catList function works in which we need to post the category id (cat), username (username), password (password) and function to be used (function) i.e cpgAPI.catList.
I have just finished writing an integration plugin for kipi for Camera Life. I may be able to work on this. Are there Coppermine developers that I may contact directly for informat ion while working on this? Also, is there a server that I could have an account on to work on this?
Things really seem to be moving forward. I am one of the core Coppermine developers and I have just started work on a Desktop Coppermine client for KDE.
Feel free to write to me at email@example.com
We will take the matter furthur from there.
Another web service export plugin...
WARNING : with digiKam 6.0.0 and later, we will not support kipi interface anymore. All tools are now located in digiKam core as well for a plan to provide a more power-full integration with Batch Queue Manager and to be able to export a workflow on a web-service.
All export tools are now available everywhere : album view, Image editor, Light table, and Showfoto. Previously, only album view from digiKam core was able to deal with export tools through libkipi.
All export tools are now located here :
All export tools use now a dedicated interface to communicate with the application :
- digiKam (database) :
- Showfoto (files metadata) :
There is not direct use of digiKam database for compatibility with Showfoto.
We plan later to provide a dynamic loading of export tools using a plugins mechanism. This will reduce overloading of the internal core libraries. A dedicated devel branch have been created for that, but it's not yet complete:
But take a care, digiKam export tools as plugins will not be shared with another external application. API will still private and only shared between Showfoto and digiKam core. The experience with libkipi was bad and complex to maintain/extend in time.