reddit-place-script-2022 icon indicating copy to clipboard operation
reddit-place-script-2022 copied to clipboard

Transparency

Open ixi2101 opened this issue 3 years ago • 3 comments

To prevent conflicts, please leave a comment on this issue if you are working on this.

Currently we try to treat (69,42,0) as a transparent pixel. This is from when we only supported .jpg. Now we support .png we should exclusively use the alpha channel for transparency . All images are already converted to RGBA in load_image so we shouldn't need to treat jpg any different to png

ixi2101 avatar Apr 03 '22 21:04 ixi2101

Makes sense.

thoroc avatar Apr 03 '22 21:04 thoroc

transparency with RGB (R,G,B) value (69,42,0) does not work

smith558 avatar Apr 03 '22 23:04 smith558

transparency with RGB (R,G,B) value (69,42,0) does not work

If you want to use this value, you will need to use jpg and "legacy_transparency" set to true

If you want to use png alpha transparency (recommended), set "legacy_transparency" to false.

Fusseldieb avatar Apr 04 '22 17:04 Fusseldieb