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

Can't right click -> copy image to clipboard #353

Open
Canapin opened this issue Jan 18, 2025 · 1 comment
Open

Can't right click -> copy image to clipboard #353

Canapin opened this issue Jan 18, 2025 · 1 comment

Comments

@Canapin
Copy link

Canapin commented Jan 18, 2025

Using Redlib with Docker on localhost.

Image

Here's the HTML code of the image area:

<div class="post_media_content">
  <a href="/img/u4ohbhkinpde1.jpeg" class="post_media_image short">
    <svg width="800px" height="800px" xmlns="http://www.w3.org/2000/svg">
      <image width="100%" height="100%" href="/img/u4ohbhkinpde1.jpeg"></image>
      <desc>
        <img loading="lazy" alt="Post image" src="/img/u4ohbhkinpde1.jpeg">
      </desc>
    </svg>
  </a>
</div>

When I right-click on the picture, then "copy image to clipboard", it doesn't do anything. It doesn't replace the clipboard content.
So I'm forced to open the image directly, and then copy image to clipboard.

I'm not sure where this issue come from, but that would be great if it were fixed.

@sigaloid
Copy link
Member

sigaloid commented Feb 3, 2025

To be clear, it is indeed copying the file data. It's the surrounding element data that is causing the difference.

One is an SVG Image element...

Image

The other is an HTML img element.

Image

Some sites parse both normally. But others do not. (Imgur works, google docs does not) For this reason, this is on the other sites to parse them both. That being said, if we can do anything to fix this, I'm open to the idea of it.

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

2 participants