redlib icon indicating copy to clipboard operation
redlib copied to clipboard

Can't right click -> copy image to clipboard

Open Canapin opened this issue 11 months ago • 1 comments

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.

Canapin avatar Jan 18 '25 11:01 Canapin

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.

sigaloid avatar Feb 03 '25 05:02 sigaloid