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

Make it possible to download images with a shortcut #198

Closed
polm opened this issue Sep 5, 2010 · 2 comments
Closed

Make it possible to download images with a shortcut #198

polm opened this issue Sep 5, 2010 · 2 comments

Comments

@polm
Copy link

polm commented Sep 5, 2010

I feel that there should be a way to download images using keyboard shortcuts - like using the link shortcut, but instead of presenting options for every anchor element present one for every img element.

@deiga
Copy link
Contributor

deiga commented Feb 16, 2013

I've been investigating this for a little while and I'm beginning to think that it's not possible.

JavaScript doesn't have tools to actually invoke any kind of save dialog, at least not client-side.

@deiga
Copy link
Contributor

deiga commented Feb 17, 2013

This PR lays the foundation for this feature.

basically what it would have to do is:

  • select all images on the page
  • apply similar functionality as .wrap()
    • $('img').wrap('<a href"'+href+'" />')
  • then hilight only links generated by this
    • maybe adding a class of data attribute to the generated links and only hilight those
  • then call the download LinkHint functionality

@philc philc changed the title Image Download Feature Request Make it possible to download images Aug 16, 2014
@philc philc changed the title Make it possible to download images Make it possible to download images with a shortcut Aug 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants