Chatterino2: Copying Transparent Images does not keep transparency

Created on 11 Aug 2020  路  11Comments  路  Source: Chatterino/chatterino2

Describe the bug
When you copy an image from the browser (I used chrome) that is transparent, and try to paste it into chatterino, it loses its transparency. When you copy the same clipboard to any upload page (imgur/nuuls) in chrome, it keeps its transparency. You can paste the image to Microsoft Word and it keeps its transparency. (Paint and Paint 3D e.g. loses it.)

To reproduce
Copy transparent image into clipboard (e.g. https://i.imgur.com/bhvDBEb.png )
Paste image into chatterino.
Click on the link - the image no longer has transparency.

Chatterino version
36dd640cd9da45aa8a9acdc75273c375159eca6b

Operating system
Windows 10

bug

All 11 comments

this can happen if the image has indexed colours, and transparency is not one of the indexed colour values.

do you have any examples that work then? (so that the person fixing it can test it, versus the frog picture in my comment)

those are just pictures without any transparencies ... ??? neither of them works

It works in windows/firefox for me (even with the pepe provided), but on windows/chrome I have the same issue as hemirt. Might be browser related(?) or atleast help to narrow the issue down.

Can reproduce, adds a black background to it: https://i.nuuls.com/MUSKT.png
If I upload directly to nuuls, it works just fine: https://i.nuuls.com/OH0m_.png
But I also get this behaviour with sharex: https://i.alazymeme.com/BloodyCautiousImage.png

Windows 10 - Microsoft Edge
f58450367

Can confirm that it works as expected (as in, no bug) on Linux using Firefox

I am using windows 10 and chrome (same setup as original reporter's) and cannot replicate this

When I open my three images mentioned above in firefox, I get a black background on 1 and 3, white on 2 (think this is intended for firefox?)
Chrome was the same as edge for me

I tested firefox, and firefox does not have the issue. (firefox shows transparency with light gray-ish background, chrome shows it with very dark gray)
Chrome has the issue, a transparent image ( https://i.imgur.com/N8JxRvP.png ) when copied from chrome via the copy image will not upload as transparent. Whilst pasting the same image into Microsoft Word (Microsoft庐 Word 2016 MSO (16.0.13029.20342) 64-bit) keeps the transparency. So it seems that Chrome does something differently than firefox, but it is possible to fix inside apps.

Tried on arch linux with firefox, brave (chromium) and qutebrowser (pyqtwebengine) and they all give a transparent image. qutebrowser firefox brave

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Mm2PL picture Mm2PL  路  3Comments

nitrousGranola picture nitrousGranola  路  3Comments

DatGuy1 picture DatGuy1  路  3Comments

kehlery picture kehlery  路  3Comments

TranRed picture TranRed  路  3Comments