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

Add Right-Click to save images #3350

Closed
gfs opened this issue May 18, 2019 · 1 comment
Closed

Add Right-Click to save images #3350

gfs opened this issue May 18, 2019 · 1 comment

Comments

@gfs
Copy link
Contributor

gfs commented May 18, 2019

  • [ X] I have searched open and closed issues for duplicates

Feature Description

Follow-up request from #3197 to expand the context menu to add Copy to images. Currently to save an image you need to click on the three dots and save it locally then open it in another application and copy it there. This request is that you be able to directly right click an image to copy it.

Changes required

I believe this can be accomplished using electron-context-menu which was added in #3197.

  1. There is an element which helps draw borders around images which obscures the image and prevents electron-context-menu from picking it up.

The element added in the same div container with each image <div class="module-image__border-overlay module-image--curved-top-left module-image--curved-top-right"></div>

If this element is removed electron-context-menu can pick up on images, but an additional change would be required to accomplish the same look. Though from what I can tell it doesn't appear to do much.

  1. By default electron-context-menu only exposes "Save image" when right-clicking an image and doesn't provide a "Copy" option. To be investigated if that is a configuration or inherent limitation.

  2. Signal Desktop uses custom emoji instead of system emoji, they are represented by images, and thus can be right-click "Save image"'d. A new css element which obscures the emoji is required.

  3. Profile images can be right-click "Save image"d. Its not clear if this is an issue.

vinhowe added a commit to vinhowe/Signal-Desktop that referenced this issue Oct 27, 2020
Wire up context menu handlers to support copying locally stored images
to system clipboard. Making this work in the Lightbox component seems
like a good first step--it means not dealing with the confusing click
handling mechanics on Message, ImageGrid, and Image. This follows the
behavior of Slack's desktop app pretty closely except that I didn't
include an option to copy the link because it's an ugly hidden local
directory.

This scratches a personal itch. I very often use the Note to Self
feature to send images between computers, and I usually just want to
copy them instead of downloading them.

Should go a long way toward addressing signalapp#3350.
@stale
Copy link

stale bot commented Sep 28, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants