Lolu chungechunge lwabekwa kunqolobane. Uyacelwa ubuze umbuzo omusha uma udinga usizo.
Copy-Paste Images from Firefox to Discord causes duplicated images
I use Firefox a lot, and a couple of months ago, it started duplicating images whenever I ctrl-v'd the images into discord. Since then, I've completely reinstalled firefox several times, with no addons-I also tried the beta and nightly versions, and even Waterfox, and still run into this problem. It seems to be an issue that strikes a lot of firefox users, and I haven't been able to find a fix yet.
In short: copy image paste image into discord (it doesn't matter if it's ctrl-v or right click paste) two images are attached to the message instead of one
This only happens to some images, mainly .pngs. I have no idea what is causing this problem and I would appreciate some kind of fix.
All Replies (20)
Can you drag the image instead of using paste ?
Start Firefox in Troubleshoot Mode to check if one of the extensions ("3-bar" menu button or Tools -> Add-ons -> Extensions) or if hardware acceleration or userChrome.css is causing the problem.
- switch to the DEFAULT theme: "3-bar" menu button or Tools -> Add-ons -> Themes
- do NOT click the "Refresh Firefox" button on the Troubleshoot Mode start window
I can't drag the image instead of using paste. And as I said above, I've installed firefox completely fresh, no extensions, no addons, default settings and everything.
• My theme is completely default. No options are changed from the standard firefox settings but this continues to happen. • No addons are running, and the issue continues to happen. • It occurs regardless of whether hardware acceleration is enabled or disabled in options.
It would help to show the issue. I cannot replicate in Nightly, but let try 95.0.2. sees screenshot
Working for me on multiple versions.
Okulungisiwe ngu jonzn4SUSE
Let me also try Win 11.
When I paste into discord, this occurs. I used the .png from the google images page of wikipedia.
I do get double Google Images when copying the image from https://en.wikipedia.org/wiki/Google_Images
I also get a double image copying one of the .PNG images on my website. .GIF and .JPG images do not duplicate like that. Edge does not duplicate these images. Interesting.
Did we try in Safe Mode? https://support.mozilla.org/en-US/kb/diagnose-firefox-issues-using-troubleshoot-mode
Yes. Even in safemode the problem persists.
Are you pasting into a web page or into a separate Discord desktop application?
If it's a web page, has anyone experiencing the problem switched the dom.event.clipboardevents.enabled preference to false? Setting that to false causes unpredictable issues on some sites, although usually more of the unable-to-edit-after-paste variety.
I was pasting into the separate Discord app. Only a single image is pasted when trying other programs like Irfanview. I just tried in safe mode and still got double images. Screenshot: https://i.imgur.com/QUf8e8i.png
That image I got from my site: https://www.markheadrick.com/
I checked dom.event.clipboardevents.enabled and it was the default true.
I suppose a workaround for now is to paste into Irfanview or something first and then copy that image to the clipboard instead.
Note that it is possible that the website recognizes more than one of the flavors that are on the clipboard and paste more than one of them. In that case this is an error on the website as they should only use one of the formats that are present on the clipboard. If you let another application place the image on the clipboard then this might work better and you won't get pasted multiple images.
I'm pasting it into discord directly, not the browser-based page. While a workaround is pasting it into a second program to then copy it from that program into discord is a workaround, it doesn't seem like a very efficient way of doing it, especially when every other non-Mozilla based browser I have tried doesn't have this problem to begin with.
Is there some setting to only output one format that mozilla provides to the clipboard? It seems like something that can or should be changed.
Just for kicks... Can you log into another windows account and try the same steps?
Do both images have the same file extension (format) or is one a PNG and the other a JPG image ?
In my case in Discord they both show as unknown.png.
I created a new user account and tried again, and got the same result. Two duplicated pictures, much the same as Mark above (two unknown.png images).
Like some other desktop applications, the Discord application is built using the Electron framework. The Discord desktop app probably is still using an older version of the Electron library (13.4.0) which has the bug related to double-pasting. Electron fixed this bug in version 14, released August 30, 2021, but I don't know what Discord's update schedule is for its app. (Ref. bug #1736944)
Until that gets fixed, does right-click > Paste have the same issue, or only the keyboard shortcut?
Threads on Reddit that are not helpful other than to possibly bracket the time frame when this problem began, which is possibly with a Sept. 2021 update to Discord:
- https://old.reddit.com/r/discordapp/comments/puvt1z/discord_attempts_to_paste_an_image_twice/ (originally posted Sept. 25, 2021)
- https://old.reddit.com/r/discordapp/comments/pxjcmu/discord_double_pasting_images_when_ctrlving/ (originally posted Sept. 29, 2021)
Right-clicking and selected paste has the same effect as just doing CTRL-V. Double unknown.png images.
Right clicking and pasting from there also encounters the same bug.
It seems strange that out of Chrome, Opera, Edge, etc. only firefox has this bug. If discord was using an older version of Electron, wouldn't every browser run into the same problem? Why is firefox working differently to every other browser and causing this error?