I’m on Linux, gnome with x11 and when I add images to notes, I often just click on copy image
in Chrome, and paste to anki.
However, I have been noticing Anki freezing for short or long time (seconds) after I paste each image which shouldn’t happen if it’s pasted from the clipboard locally.
Moreover, I occasionally got popups of 4xx errors after the freeze (but the image seems to paste successfully anyways. I didn’t bother to inspect the field html when those happened but I suspect Anki falls back to use a remote url, as my later example shows below.)
After a successful paste, I usually get this in my field:
<img alt="国際公務員 | 法律・公務員 | 未来の仕事を探せ! | 未来の仕事 | 学研 ..." src="be28e623c96b6e8f914752a00cc41728.jpg">
an img tag sometimes with an alt field and a local hashed and downloaded image file.
Today, rarely after tens of seconds of freezing, I got an SSL error, but the image successfully appeared anyway:
<img alt="発熱」は何度から?熱が出る原因・熱が出た際の対処法について - 健康 ..." src="https://www.suntory-kenko.com/column2/wp-content/uploads/2023/01/928-1.jpg">
and it seems to be a remote image instead, as I checked my media folder and it didn’t have the image.
I wonder why is an internet request even neccesary in this case? xclip -selection clipboard -t image/png -o > /tmp/test.png
on my terminal would just paste the image instantly too.
Additionally, If I would just copy a screenshot to the clipboard using my system screenshot tool though, it pastes as:
<img src="paste-24e3c3884be88f587a08c765c7961bc7c93f573a.jpg">
and I indeed observe no internet request.