Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[META] Image viewing and saving - nonAPI #107

Open
2 of 7 tasks
gsantner opened this issue Nov 4, 2016 · 13 comments
Open
2 of 7 tasks

[META] Image viewing and saving - nonAPI #107

gsantner opened this issue Nov 4, 2016 · 13 comments

Comments

@gsantner
Copy link
Owner

gsantner commented Nov 4, 2016

General information

  • App version: 0.2.1

  • Save images

  • Picture ContextMenu improvements

  • Optional: Lightweight picture viewer (jpg, png, gif)

    • Very optional: Swipe pictures of post if there are multiple

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

  • Download picture -> Notification which opens the system picture viewer with the picture
  • Show picture (New): Some kind of dialog or popup, which just shows the picture, but leaves WebView as it is
  • Allow to copy url of image (Copy image URL #136) - just like normal links, code exists
  • Allow different file formats: jpg, png, gif
@vanitasvitae
Copy link
Collaborator

vanitasvitae commented Nov 4, 2016

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
Copy link
Owner Author

gsantner commented Nov 5, 2016

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
Copy link
Collaborator

vanitasvitae commented Nov 5, 2016

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 gsantner added this to the v0.2.2 milestone Dec 3, 2016
@gsantner gsantner changed the title New features for Pictures Correctly save images, Picture ContextMenu improvements Dec 3, 2016
@gsantner gsantner modified the milestones: 0.2.3, v0.2.2 Dec 18, 2016
@gsantner gsantner changed the title Correctly save images, Picture ContextMenu improvements Fix image saving, Picture ContextMenu improvements Dec 24, 2016
@gsantner
Copy link
Owner Author

gsantner commented Dec 25, 2016

Any contributions are appreciated on this issue!

@noplanman
Copy link

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
Copy link
Collaborator

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

@noplanman
Copy link

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
Copy link
Collaborator

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

@noplanman
Copy link

Aaaah, great! 😃

@vanitasvitae
Copy link
Collaborator

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

@gsantner
Copy link
Owner Author

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

@vanitasvitae
Copy link
Collaborator

vanitasvitae commented Dec 30, 2016

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
Copy link

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

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

@gsantner gsantner changed the title Fix image saving, Picture ContextMenu improvements [META] Image viewing and saving - nonAPI Feb 19, 2017
@gsantner gsantner modified the milestones: 0.2.4, 0.2.3 Feb 19, 2017
@gsantner gsantner removed this from the 0.2.4 milestone Nov 22, 2017
@gsantner gsantner removed the kind/ui label Jan 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants