rgba

(PYTHON, PILLOW) How to make RGBA image conversion to RGB faster?

(PYTHON, PILLOW) How to make RGBA image conversion to RGB faster? Question: I’m making fade effect by merging .png image with .jpg, but the conversion process takes too long. Is there a way how I could speed up this process? for f in range(101): print(str((200 + f) /3) + "%") if f == 0: im_rgba …

Total answers: 1

Convert RGBA PNG to RGB with PIL

Convert RGBA PNG to RGB with PIL Question: I’m using PIL to convert a transparent PNG image uploaded with Django to a JPG file. The output looks broken. Source file Code Image.open(object.logo.path).save(‘/tmp/output.jpg’, ‘JPEG’) or Image.open(object.logo.path).convert(‘RGB’).save(‘/tmp/output.png’) Result Both ways, the resulting image looks like this: Is there a way to fix this? I’d like to have …

Total answers: 7