Piwigo.org

You are not logged in. (Register / Login)

Announcement

Post a reply

Write your message and submit

Click in the dark area of the image to send your post.

Go back

Topic review (newest first)

plg
2010-11-17 12:18:54

topic:16667

plg
2010-11-14 22:11:30

I just updated extension:411 with a new version 2.1e to fix the bug that forced the user to open screen [Administration > Photos > Add] at least once before using the Shotwell plugin.

guillaumev, can you please create a new topic dedicated to the Shotwell plugin, in the Beta testing section of the forum, please? (I will start to communicate a bit more about this export plugin then)

guillaumev
2010-11-07 19:02:38

Hi,

plg > you can find how to install the connector in shotwell here: https://github.com/guillaumev/piwigoshotwell (see readme file). In order to test it, I would say try to upload various files in various categories.

Testing it, I found two limitations:
- subcategories are not displayed in the combo box, making it impossible to upload photos into subcategories
- it's impossible to create a subcategory from the shotwell interface

I'll see if I can fix these, but probably later.

freechelmi
2010-11-07 16:36:47

Hello !

Kudos to guillaumevfor this patch.

I just compile svn trunk of shotwell  and apply the patch and it worked great !

results here : http://memeteau.com/photos/index.php?/category/36

A most of the shared host are usually limiting php upload to 2M(mine @toile-libre.org is 100M ! ) , it's true that the SimpleAdd will not be sufficient in most cases but it's great for now !!

So just get the SVN or stable of shotwell and add the ppa of yorba for the needed dev librairies (see http://yorba.org/shotwell/install/)

then get the Patch from Gitbub and apply hit on the root dir of the shotwell sources.

Recompile and install and that's it !

plg
2010-11-06 21:18:16

Excellent news!

Can you give a tutorial guide on how to test?

guillaumev
2010-11-06 21:14:39

Hi,

Ok so I'm now able to upload photos to Piwigo using Shotwell !

The code can be found here, and needs testing (obviously): https://github.com/guillaumev/piwigoshotwell I'll email the shotwell mailing list and will let you know.

Cheers.

guillaumev
2010-11-05 16:17:15

Hi plg,

Well I'm glad I talked on the forum before digging too much into pwg.images.addChunk because, in fact, pwg.images.addSimple seems MUCH easier to use !

Great news.

Thanks.

plg
2010-11-05 01:50:25

Hi guillaumev,

guillaumev wrote:

Just to give an update on this, I'm now able to authenticate, get the list of categories and create a new category using shotwell.

Great news! Thank you for notifying the forum.

guillaumev wrote:

I'm now working on splitting the image into chunks and sending it to Piwigo using pwg.images.addChunk and pwg.images.add, which looks like is going to be the most complex part of it.

Just don't implement pwg.images.add in your first draft of the Shotwell plugin. Use pwg.images.addSimple instead. It is much simpler. You have to install extension:411 and read [wiki] pwg.images.addSimple. pwg.images.addSimple will become a standard method in Piwigo 2.2.

Don't hesitate to ask many questions, I'm here to make your life simpler as a contributor :-)

guillaumev
2010-11-05 01:16:54

Hi,

Just to give an update on this, I'm now able to authenticate, get the list of categories and create a new category using shotwell. I'm now working on splitting the image into chunks and sending it to Piwigo using pwg.images.addChunk and pwg.images.add, which looks like is going to be the most complex part of it. I'll post my code on github when I get this working...

plg
2010-10-27 20:51:17

The authentication token was added in the pwg.session.getStatus method for future version 2.1.4, see [Bugtracker] feature 1756 but you don't need it for photo upload.

If you look at the Perl example given on [wiki] pwg.images.addSimple documentation, the web browser agent is able to store a cookie:

Code:

my $ua = LWP::UserAgent->new;
$ua->cookie_jar({});

and that is enough to tell Piwigo that the next HTTP request will be authentified at Piwigo level.

guillaumev
2010-10-27 20:02:43

Hi,

First question: it seems that the pwg.session.login does not return any auth token. Maybe I'm wrong somewhere, but I think the pwg.session.login method should return an auth token which should be bound to the session, because in the case of browsers, yes, cookies can be used, but in the case of desktop applications like shotwell...

Please let me know what you think...

guillaumev
2010-10-26 17:35:01

Thanks ! I will do a few tests on my side and, whenever I get an alpha version, that more or less works, will ask to own the feature request and publish my code.

I will keep you updated.

plg
2010-10-26 09:25:21

Hi guillaumev,

There is a feature request registered on the Shotwell bugtracker: Piwigo publishing. As far as I understand, it is currently owned by nobody, so I suppose no work has been done yet, even if Maciej Rumianowski is following the feature request and said he was interested.

I advise you to post a reply on the shotwell mailing-list to get the best possible update.

Don't hesitate to ask many questions before coding :-)

guillaumev
2010-10-26 02:48:24

Hi,

I would be interested to help on this. Can someone give me updates on the status of this ? Has it been started ? Is there any code that's been published in a repository ?

Thanks.

plg
2010-10-08 14:47:26

freechelmi wrote:

great ! I saw your message on the shotwell ML and the ticket opened.

Yes, at least one person replied he would be interested, see Maciej Rumianowski reply.

freechelmi wrote:

I don't know vala but will give a try in the coming months, because I really need this.

Nice to read this.

freechelmi wrote:

And I would use  http://fr.piwigo.org/doc/doku.php?id=pr … ;s=control for Piwigo

You'd better try this [wiki] pwg.images.add & pwg.images.addChunk if you want to use the advanced method or [wiki] pwg.images.addSimple if you want to make your life simpler (much simpler in fact). My advice is to start with pwg.images.addSimple just to get something working very fast and then implement the pwg.images.add method instead to get more control on resize settings.

Board footer

Powered by FluxBB

About this website · Donate · Contact Piwigo project © 2002-2013