chatterino2
chatterino2 copied to clipboard
Clipboard data sometimes does not paste the image - Cannot upload file: . Not an image.
Checklist
- [X] I'm reporting a problem with Chatterino
- [X] I've verified that I'm running the most recent nightly build or stable release
- [X] I've looked for my problem on the wiki
- [X] I've searched the issues and pull requests for similar looking reports
Describe your issue
Images copied from Google Chrome by Copy Image when on a website sometimes don't work when pasting.
Seems to be an issue, when the tag has an "alt" property. (Other extra properties might do the same [speculation])
Example works - no alt tag: https://old.reddit.com/r/pcmasterrace/comments/1aj6xeq/live_on_the_edge_get_cut_by_it/ does not work - has "alt" property: https://new.reddit.com/r/pcmasterrace/comments/1aj6xeq/live_on_the_edge_get_cut_by_it/
Inspecting clipboard data using InsideClipboard software reveals that "alt" property makes chrome add an extra UniformResourceLocatorW data value (with the url for the image).
Screenshots
No response
OS and Chatterino Version
Chatterino Nightly 2.4.6 (commit 77eb9cc1) built on 2024-01-03 with Qt 6.5.0, MSVC 193732826 Running on Windows 11 Version 23H2, kernel: 10.0.22631