crabber-net / crabber

A Twitter clone written in Python + Flask with extended features and a focus on inclusivity.
https://crabber.net
GNU General Public License v2.0
48 stars 15 forks source link

Transparent backgrounds on images fill out white when posted in a molt #74

Closed hasrock36 closed 3 years ago

jakeledoux commented 3 years ago

PNG images (though a wonderful format) are too large for mass storage and sending over the web on small sites like Crabber so all uploaded images are re-encoded to JPEG. As you know, JPEG has no alpha channel so unfortunately the transparent areas of the image have to be filled in with something and the color white was chosen because it tends to fit pretty well.

As a workaround, users can paste direct links to PNG images (and other stuff like GIFs!) stored elsewhere on the web and Crabber will display them in the full native media box without re-encoding to JPEG.