pasting image with alpha channel surrounding resulting in black edge
Categories
(Core :: Graphics: ImageLib, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox76 | --- | affected |
People
(Reporter: lolipopplus, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(3 files)
STR
- copy any image with alpha channel surrounding (use attached image in the zip if you don't have any) into clipboard.
- pasting it into input box, like GitHub or even here bugzilla
Actual result:
A black edge occurs on the top (see result.png in the zip).
Reporter | ||
Comment 1•4 years ago
|
||
more sample sites: Twitter and Facebook, maybe also Reddit (not that sure though)
Comment 2•4 years ago
|
||
Just to see if it reproduces here.
Comment 3•4 years ago
|
||
Can we get a little more detail on how you're copying and pasting the image, so that we can try to replicate this locally?
(Specifically, which program are you copying from and which version of Firefox are you pasting it into?)
Thanks!
Updated•4 years ago
|
Reporter | ||
Comment 4•4 years ago
|
||
- It is from a screenshot tool called Snipaste (https://www.snipaste.com/). I have talked to the author and did test that Chrome works fine. But not all screenshot can be reproducible. Nearly 50-50, manually add similar alpha channel in image tools seems pretty much same.
- Both Firefox 73.0.1 and 74 have this issue on Windows. My Windows is Windows 10 1909 18363.693
Reporter | ||
Comment 5•4 years ago
|
||
Just additional info: if you can directly paste image into web textbox instead of opening it from picker, it is more likely to reproduce.
Reporter | ||
Comment 6•4 years ago
|
||
the creator of Snipaste and I did some further talking:
- the copying code is
QApplication::clipboard()->setImage(image);
, which is Qt built-in function (and yes, the program uses Qt and I used the Windows Store version) - we can expect similar result simply by create any format with alpha channel when constructing the image into clipboard
- two result images from https://twitter.com/Snipaste indicate that we don't need
human-visible
alpha channel surrounding - it is not 100% sure it is not the problem of Qt
Comment 7•4 years ago
|
||
https://bugreports.qt.io/browse/QTBUG-11463 would suggest that there are known QT issues on Windows with putting alpha-containing things on the Windows clipboard. https://stackoverflow.com/questions/44177115/copying-from-and-to-clipboard-loses-image-transparency suggests that this may not be a QT-specific problem.
We should figure out what flavours of clipboard data the tool you're using (QT and/or that app) supports / puts on the clipboard, and/or find a way to reproduce with e.g. mspaint or other common tools.
Reporter | ||
Comment 8•4 years ago
|
||
Just had further info from the author. If you guys are seeking other apps, Telegram is an alternative for this issue since it also uses Qt.
The STR becomes:
- send the sample image to Telegram as image so that it doesn't lose anything
- open in it Telegram and copy
- use Firefox to paste it into GitHub or Twitter
Reporter | ||
Comment 9•4 years ago
|
||
Also this is another sample that has problem on Telegram & Firefox. But strange part is it doesn't have alpha channel this time.
Comment 10•4 years ago
|
||
Because this bug's Severity has not been changed from the default since it was filed, and it's Priority is P3
(Backlog,) indicating it has been triaged, the bug's Severity is being updated to S3
(normal.)
Comment 11•2 years ago
|
||
The bug has a release status flag that shows some version of Firefox is affected, thus it will be considered confirmed.
Description
•