hluk / CopyQ

Clipboard manager with advanced features
GNU General Public License v3.0
8.63k stars 440 forks source link

Broken image preview in clipboard on certain websites #2560

Closed ArubaitoR closed 10 months ago

ArubaitoR commented 10 months ago

Describe the bug When copying an image from a website (pixiv.net), copyq store the data as URL rather than image data (Screenshot 1). Resulting in broken image preview (Screenshot 2, 1st row of the clipboard).

To Reproduce Steps to reproduce the behavior:

  1. Go to artwork page in pixiv.net (e.g. https://www.pixiv.net/en/artworks/105902302)
  2. Right click on image > Copy Image
  3. Open copyq to preview clipboard history
  4. Broken preview can be seen.

Expected behavior Image data with working preview, just like the 2nd row on the clipboard of Screenshot 2.

Screenshots Screenshot 1 URL Screenshot 2 BrokenPreview

Version, OS and Environment

Additional context: This doesn't happen with default windows clipboard manager or alternatives like Ditto.

hluk commented 10 months ago

I think this is duplicate of #2084. Some web browsers copy only HTML with links to remote images but CopyQ will not fetch any remote content in HTML (due to security concerns).