pigallery2 icon indicating copy to clipboard operation
pigallery2 copied to clipboard

Sharing a single photo via app

Open headcrushedindoor opened this issue 3 years ago • 8 comments

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.

headcrushedindoor avatar Mar 30 '21 13:03 headcrushedindoor

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.

bpatrik avatar Mar 30 '21 20:03 bpatrik

duplicate to #129 ?

SlavikCA avatar Apr 25 '21 06:04 SlavikCA

yes, indeed, thanks.

bpatrik avatar Apr 25 '21 07:04 bpatrik

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.

headcrushedindoor avatar Apr 25 '21 07:04 headcrushedindoor

oops, sorry. I will reopen

bpatrik avatar Apr 25 '21 08:04 bpatrik

@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.

kagahd avatar Feb 22 '23 07:02 kagahd

@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 avatar Feb 24 '23 07:02 bpatrik

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.

bpatrik avatar Feb 24 '23 07:02 bpatrik