[Django]-Python PIL – background displayed opaque instead of transparent

5👍

That is because JPEG cannot save transparency informations which are contained in a RGBA image. You may want to save the avatar to a format like PNG which is able to keep these informations.

5👍

You’re generating a JPG image. JPEGs don’t support background transparency. You need to generate a PNG image to support transparencies.

👤Soviut

Leave a comment