gsantner / dandelion

a unofficial diaspora* client for Android
https://github.com/gsantner/dandelion
Other
113 stars 32 forks source link

[META] Image viewing and saving - nonAPI #107

Open gsantner opened 7 years ago

gsantner commented 7 years ago

General information

Correctly save images

Currently everything is saved as *.png file when clicking picture -> Context menu -> save. The images should be saved with the proper extension (jpg/png/gif/..)

Picture ContextMenu improvements

Currently

  1. Long-Click on Picture in WebView
  2. Context menu gets opened

Expected

vanitasvitae commented 7 years ago

I guess some "show image" feature will be/is implemented in the mobile site?

Edit: Displaying a notification after download finished is a great Idea! For "Show Image": We could take a look at https://github.com/davemorrissey/subsampling-scale-image-view Different file formats: Related to #102

gsantner commented 7 years ago

Show image is one of my use cases: I spend the most time on diaspora looking on pictures. Sometimes there are really good pictures, but I can't really see anything. So an built-in context action for viewing (and allowing zoom-in) would be great.

Library: Don't know how big the mentioned one is, but I think some lightweight (without much options) is enough. But it should handle the most common (mentioned above) file extensions.

vanitasvitae commented 7 years ago

The library I mentioned handles images, gifts and I think even webms.

It would be nice, if the imageViewer would offer swipe actions that allow to go to the next/previous image in the post (if there is one). I don't know, how hard that would be to accomplish without the API though.

gsantner commented 7 years ago

Any contributions are appreciated on this issue!

noplanman commented 7 years ago

Just came across this which could help to implement the "Copy link to clipboard": http://cketti.de/2016/06/15/share-url-to-clipboard/

vanitasvitae commented 7 years ago

@noplanman: copying the image link to clipboard is no big deal, there is no extra app needed for that, but thank you anyway :)

noplanman commented 7 years ago

Oh, I didn't post it for the extra app, but for the part "Option 3: Extend the Share dialog". As for now, there is no such option on the share dialog, meaning I need to select "Open in external browser", then copy the URL from there.

vanitasvitae commented 7 years ago

Yeah, I meant, adding such an option to the share menu is no big deal ;)

noplanman commented 7 years ago

Aaaah, great! 😃

vanitasvitae commented 7 years ago

I just added an option to copy image urls to clipboard :)

gsantner commented 7 years ago

@vanitasvitae Nice :D We could also inherit&override from the ContextMenu of normal links (don't know how you did :) )

vanitasvitae commented 7 years ago

Its only ~5 Lines of code. I don't think its worth to inherit something there ;) Edit: I just added another switch case without body right before the copy link case. Thats about it. So in fact, it actually uses the copy text code.

noplanman commented 7 years ago

I just added an option to copy image urls to clipboard :)

Thanks! I use this so much... Can't wait for the next version 😇