Kërkoni te Asistenca

Shmangni karremëzime gjoja asistence. S’do t’ju kërkojmë kurrë të bëni një thirrje apo të dërgoni tekst te një numër telefoni, apo të na jepni të dhëna personale. Ju lutemi, raportoni veprimtari të dyshimtë duke përdorur mundësinë “Raportoni Abuzim”.

Mësoni Më Tepër

Copy-Paste Images from Firefox to Discord causes duplicated images

  • 24 përgjigje
  • 2 e kanë hasur këtë problem
  • 1 parje
  • Përgjigjja më e re nga cor-el

more options

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.

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.

Krejt Përgjigjet (4)

more options

I don't know the exact difference between what Firefox puts on the clipboard when copying an image versus other browsers. When I was searching, someone mentioned something but I don't recall now.

I also don't know why Electron double-pastes when most other applications seem perfectly fine with what Firefox puts on the clipboard.

One thing comes to mind about PNGs that differs from other image types: when a PNG copied in Firefox contains transparency, in the bitmap data, the transparent pixels are black. Maybe this is somehow related to the problem affecting some or all PNGs?

more options

I know with the PNG on my website it does not have a transparent channel. I checked Irfranview and it's settings for PNG did not have it set by default. I did try it with a .GIF that did have a transparent channel and it pasted fine.

Interesting that regardless of the file type, Discord always says unknown.png.

more options

It seems like the problem lies in how Firefox handles clipboard information or pasting information. Discord allows for multi-picture uploading: you can select multiple files from your drive to upload to a channel. Some interaction between this functionality and Firefox is unique, and possibly relating to the way Firefox handles transparency and .pngs as Mark said.

It could be that it isn't pasting the image the same way as every other browser out there, and is sending in raw data that Electron has to unpack: One layer for transparency, and one layer for the rest of the image, or something. Does anyone here have knowledge of how Firefox does these things?

more options

When I copy an image to the clipboard in Firefox then I see these image flavors:

  • image/png, image/jpeg, image/jpg

"image/jpg" does nothing for me, but "image/png" and "image/jpeg" both give a different image.

  1. 1
  2. 2