We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

Copy-Paste Images from Firefox to Discord causes duplicated images

  • 24 trả lời
  • 2 gặp vấn đề này
  • 1 lượt xem
  • Trả lời mới nhất được viết bởi 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.

Tất cả các câu trả lời (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