Announcement

#1 2016-09-15 22:22:39

wittypluck
Member
2016-09-05
24

Android: share to Piwigo

Hello / Bonjour,

I would like to send pictures from an Android phone/tablet directly to my Piwigo gallery, without having to log into the administrator section (not mobile friendly).
I was thinking of a very basic Android app which would register itself as being able to "share" images from any Android image app (gallery, image editor..), and send them to Piwigo (in an existing album) using the web api.

Do you know if anything similar already exists ?

I don't have much experience on Android coding, but I started to code a small sample and the sharing bit is quite straightforward.

To send the image to Piwigo, I saw several Java implementations of the Piwigo API already exist :

- jiwigo-ws-api in project ReGalAndroid
https://github.com/anthonydahanne/ReGalAndroid

- Piwigo Remote Sync in project Piwigo-Java
https://github.com/Piwigo/Piwigo-Java

- Piwigo-Android (doesn't support sending photos I think)
https://github.com/Piwigo/Piwigo-Android

Do you know if one is better / more maintained than the others ?

Any help/interest on coding the app would also be welcome.

Thanks,

Offline

 

#2 2016-09-29 10:37:42

TheDoc
Member
Munich / Germany
2015-10-18
173

Re: Android: share to Piwigo

Hi,

I would also be interested in something similar. I started looking into coding myself but then hoped that Piwigo-Android would come to the rescue. Unfortunately, there haven't been any updates lately there :-(

Unfortunately, my Android coding skills are nil. I had a few attempts with JavaFX but didn't look to deep into it. If you would be able to implement an Android app I surely would be able to support by testing, ...

Cheers,
Thomas

Last edited by TheDoc (2016-09-29 10:37:54)

Offline

 

#3 2016-10-01 20:32:51

wittypluck
Member
2016-09-05
24

Re: Android: share to Piwigo

Hi,
I've started to code something but mostly experimenting with Android for now. But thanks for the offer, I'll tell you when/if I can share something for testing!
I started with jiwigo-ws-api from project ReGalAndroid which seemed the most complete and easy to reuse, but I'm struggling with deprecated code which needs to be upgraded.

Offline

 

#4 2016-10-02 15:02:36

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

Re: Android: share to Piwigo

Hi wittypluck,

wittypluck wrote:

Do you know if one is better / more maintained than the others ?

As far as I know, this one:

wittypluck wrote:

- Piwigo Remote Sync in project Piwigo-Java
https://github.com/Piwigo/Piwigo-Java

Offline

 

#5 2016-10-03 12:54:50

TheDoc
Member
Munich / Germany
2015-10-18
173

Re: Android: share to Piwigo

"Latest commit Aug 4, 2016" looks good!

And Java API would at least help me a lot since lately I have been doing a few things with JavaFX - coding gives you one app for all platforms :-)

Offline

 

#6 2016-10-06 01:32:34

wittypluck
Member
2016-09-05
24

Re: Android: share to Piwigo

Thanks plg. Piwigo-Java looks good, but it's not compatible as is with Android and I'm not able to port it myself.
I've continued  experimenting with jiwigo-ws-api and made some progress. I'm able to share a picture from the Android gallery to my app, login to a Piwigo gallery, and send a picture to a category.
There's still a long way to go :
- all piwigo gallery parameters are hardcoded, so I need a screen to configure them (url, login, password)
- I need a category selector instead of picking a random one
- lots of deprecated code in the jiwigo api, so I'm not too sure how it would work on various versions of Android
I'll keep you updated !

Offline

 

#7 2016-10-06 15:39:02

TheDoc
Member
Munich / Germany
2015-10-18
173

Re: Android: share to Piwigo

Hi wittypluck,

"Piwigo-Java looks good, but it's not compatible as is with Android" - do you mean the UI there isn't compatible with Android?

Anyways, maybe you could place your code @github and we could continue the discussion there? As I said, I could offer add UI with JavaFX. So it could be used on any platform.

Cheers,
Thomas

Offline

 

#8 2016-10-06 17:59:04

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

Re: Android: share to Piwigo

Wouldn't it be interesting to contribute to https://github.com/Piwigo/Piwigo-Android ? Piwigo really needs an app for Android (or whatever works great with Android) and it seems to be the most interesting "work in progress" for now.

Offline

 

#9 2016-10-06 20:03:48

TheDoc
Member
Munich / Germany
2015-10-18
173

Re: Android: share to Piwigo

plg wrote:

Wouldn't it be interesting to contribute to https://github.com/Piwigo/Piwigo-Android ? Piwigo really needs an app for Android (or whatever works great with Android) and it seems to be the most interesting "work in progress" for now.

Yep, if still active... Latest entry is an issue I had raised in Feb 2016.

Also, it seems that this is a broader approach to have a full piwigo maintenance on Android. Here we're talking about an uploader to easily add photos to a category.

So https://github.com/Piwigo/Piwigo-Android would be of help if

a) still alive
b) development would take this functionality up first and other things later

Please don't get me wrong - I'm rather lazy and a big fan of re-use :-)

Last edited by TheDoc (2016-10-06 20:04:29)

Offline

 

#10 2016-10-07 14:58:19

wittypluck
Member
2016-09-05
24

Re: Android: share to Piwigo

Hello,
Thanks for the suggestion. I checked the project Piwigo-Android and I don't think it has yet the main API implementation I need, which is sending pictures.
I wouldn't mind adding code to it, but I guess I don't really get the point of this project. If the idea is to have a full admin app for Android, that's a lot of work, and will need to duplicate all web site functions. Probably easier (and cross platform) to make the current web admin interface evolve to be more touchscreen friendly?

Anyway, I'll try to push some code to GitHub hopefully next week, see if it makes sense as a standalone app.

Offline

 

#11 2016-10-08 10:39:51

wittypluck
Member
2016-09-05
24

Re: Android: share to Piwigo

OK so another update :

I checked ReGalAndroid again after reading forum messages about sharing to Piwigo.
And it does indeed have exactly what I was looking to do : select from Android gallery, "share" through RegalAndroid, send to Piwigo.
From the messages in the Android store it seemed to be dead, but there is indeed some recent activity on the Github page, with a pull request which updates the look and feel to something more modern.

Also, I had lots of crashes in RegalAndroid with a Piwigo gallery.
I fixed the most obvious ones, and submitted a Pull Request so hopefully the app will be updated in the store.
My fixes are here :
https://github.com/wittypluck/ReGalAndroid
And the Pull Request is here:
https://github.com/anthonydahanne/ReGalAndroid/pulls

The only thing I would be missing is adding tags when sending images, but I'll first look into tagging the images themselves (iptc)  before sending them.

Offline

 

#12 2016-10-08 17:28:31

TheDoc
Member
Munich / Germany
2015-10-18
173

Re: Android: share to Piwigo

That sounds great! Need to give that a try.

Offline

 

#13 2016-10-12 00:31:30

wittypluck
Member
2016-09-05
24

Re: Android: share to Piwigo

For the reference, I found a great little Android app to tag pictures before sending them to Piwigo.
It's called "swifttags":
https://play.google.com/store/apps/deta … er.tagging

So I now have a nice workflow when I am far from home:
- copy picture from DSLR to phone (SD card or wifi)
- edit raw/jpeg (eg Snapseed)
- tag with swifttags
- send through regalandroid

Offline

 

#14 2016-10-12 09:39:15

TheDoc
Member
Munich / Germany
2015-10-18
173

Re: Android: share to Piwigo

Cool. Now your pull request only needs to be included in ReGalAndroid...

Offline

 

Board footer

Powered by FluxBB

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