bpatrik / pigallery2

A fast directory-first photo gallery website, with rich UI, optimized for running on low resource servers (especially on raspberry pi)
http://bpatrik.github.io/pigallery2/
MIT License
1.76k stars 202 forks source link

Sharing a single photo via app #243

Open headcrushedindoor opened 3 years ago

headcrushedindoor commented 3 years ago

Is your feature request related to a problem? Please describe. It'll be great sharing a photo directly to an app (Android) (first world problems :)).

Describe the solution you'd like For example, I'd like to share a photo from gallery through Whatsapp to a friend. First I have to download the photo then through file explorer find the photo and send it. I'd like to press that two pointing icon thingy and choose WhatsApp from menu and send it.

bpatrik commented 3 years ago

Hi,

I do not mind having it, but I dont think I will have time for this in the near future, sorry. I leave this issue open, maybe some picks it up and implements it.

SlavikCA commented 3 years ago

duplicate to #129 ?

bpatrik commented 3 years ago

yes, indeed, thanks.

headcrushedindoor commented 3 years ago

Actually not. That request is sharing single photo in terms of sharing in PiGallery2. What I meant here is actually sharing via app, no need for links or anything. Just tap share, tap Whatsapp, send as an image.

bpatrik commented 3 years ago

oops, sorry. I will reopen

kagahd commented 1 year ago

@headcrushedindoor, as described in this comment of issue #614, you may construct an URL which points to the image that you want to share. As long as the invitee is granted to see the gallery, he/she will be able to see the photo by clicking that link. Of course, it's not as convenient as "press[ing] that two pointing icon thingy and choose WhatsApp from menu" but it's at least a workaround.

bpatrik commented 1 year ago

@kagahd to add some info to https://github.com/bpatrik/pigallery2/issues/614#issuecomment-1438879256 topic:

  1. Users can access the whole gallery without restriction
  2. It is possible to create sharings that will create a limited user in the background that can only see a directory (and optionally all child dirs.) Setting individual photos, search results are not possible and needs medium to major business logic, authentication and DB refactoring to support it.

To support sharing a single photo via link the feature above needs to be implemented + do some UI changes. I expect it to last for someone who understands the code (i.e:me) about 4-5 * 8 h. (and I'm bad with estimations :D I usually underestimate work). I'm sorry but since I do not need this feature ATM, but there are feature that I need + I only have 10-20 days per year to spend on this project, I do not know when I would have time for such changes.

bpatrik commented 1 year ago

About the original request:

I think an in app sharing should be easier to implement. I expect it to only need UI changes somewhere in the lightbox control component: https://github.com/bpatrik/pigallery2/blob/master/src/frontend/app/ui/gallery/lightbox/controls/controls.lightbox.gallery.component.html#L37

I have never implemented anything like this so do not know what exact changes are required.

Unfortunately the same applies on my side to this request: There are other features that are higher priority + I only have limited time. I don see me having time for this in the foreseeable future. At the end its just a hobby project of mine that I'm sharing with others and hope they can also benefit.