When copying images from Discord (using its right-click menu → copy image) and trying to paste them into Anki cards, Anki will insert an image from collection.media called “image.png” instead of the image in the clipboard (if no file with that name exists, a broken image icon appears). So no matter what I copy from Discord, Anki will only ever paste that one wrong image.
This is on Windows 10, using Anki Desktop 25.09.4 (but it has happened on older versions too).
I have been very diligent about excluding potential error sources:
i’ve checked whether the clipboard actually contains the correct image after copying in Discord; it does, I can paste it anywhere else without an issue
“Paste clipboard as PNG” makes no difference
Anki inserts the HTML code <img src="image.png"> into the card instead of creating a unique file name
This happens with all external Add-Ons disabled/removed
As far as I can tell, this is not an image collision problem, since Anki would just rename another “image.png” if I pasted it in there (I have tested this, too).
My guess is that Discord is providing some sort of text or html blob along with the image in its clipboard item, and Anki prioritizes that over the bitmap. Or perhaps it chooses the wrong paste code? I have heard about separate code paths for internal and external copy/paste.
In any event: Can I somehow force Anki to paste the correct image?
And if not: How can I ask the developers for help in fixing the issues?
I am able to reproduce the described behavior, macOS Tahoe 26.6.2, Anki 26.09b1, Dsicord app 0.0.409.
Some experimenting:
Copy image from the Discord app and then:
Apple Finder, Edit > Show Clipboard: image correctly shown
Paste into:
Anki app: (broken image icon, <img src="image.png"> in HTML editor)
Notes app: (broken image icon)
TextEdit app, RTF document: (broken image icon)
Pages app: image correctly pasted
Freeform app: image correctly pasted
Safari, Anki forum editor: image correctly uploads and appears
The behavior seems to occur only with images copied from the Discord app. It doesn’t occur with images copied from Safari.
I found a workaround for Mac desktop users. Pasting from the Clipboard History works successfully. (I’m guessing that this is because rather than pasting the original copied image, it instead pastes a copy of the image stored as a file in the directory where Clipboard History items are stored.) The workaround is available starting with macOS Tahoe 26, the version that added the Clipboard History feature.
Setting up the Workaround:
Press Command-Space (⌘␣) to open Spotlight and then press Command-4 (⌘4) to switch to the Clipboard.
The first time you do this, it asks you if you want to enable the Clipboard History feature. Enable it. (You only have to do this one time.)
The Workaround:
Copy an image from Discord using the right-click context menu > Copy Image.
In the Anki app, insert the cursor where you want the image pasted.
Press Command-Space then Command-4 (⌘␣ ⌘4) to open Spotlight and switch to the Clipboard.
Right-click on the image (it will be at the top of the list) to open the context menu and select Paste.
Edit: Added:
Another workaround, which should work for non-Mac users as well. Instead of copying the image directly from the Discord app…
In the Discord app, right-click on an image to bring up the context menu, and then Open Image Link.
The image should open in your web browser. (The image file is retrieved from the web server where Discord stores attached images.)
In the web browser, right-click on the image to bring up the context menu, and then Copy Image.
I found another workaround, which is to open the image in a lightbox by clicking it in Discord, and then dragging it into Anki. This will not work if you clicked the image again to zoom in on it, only at its original display size.
Discord seems to have changed some of its behavior and options a bit since we discussed this last year –
– but it still seems like something that Discord is causing. There are definitely other apps (besides Anki) where I can’t paste images copied from the Discord app without saving them first.
..and there are plenty where it works, so it sounds like something Anki should be able to do. Let’s not be too quick to make this someone else’s problem
It’s impossible to anticipate every error. And if there’s an error in the HTML, how can you tell if there’s an error in the BITMAP? After all, whoever sends the data to the clipboard should be responsible for quality.
I didn’t mean to suggest it was “someone else’s problem.” And I especially didn’t mean to set you up as needing to defend why you thought it should be fixed. I was only trying to adjust expectations about whether it would be fixed, or was even fixable.