You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cwebp has a commandline flag of -alpha_q <x>% which uses lossy-compression for the alpha channel and can significantly reduce image size, and also seems to speed up image conversion in some cases. It would be great to have this ability in Pillow also.
Additionally an option similar to -noalpha where we know the image does not contain any alpha layer saves ~27 bytes per image - not particularly significant but again a nice-to-have for cwebp compatibility.
Thanks!
The text was updated successfully, but these errors were encountered:
If you want to ensure that your Pillow image does not have transparency, that seems like just a matter of making sure the mode isn't one of "LA", "La", "PA", "RGBA" or "RGBa", making sure "transparency" isn't in the image's info, and making sure that it doesn't have a palette with an alpha channel.
cwebp
has a commandline flag of-alpha_q <x>%
which uses lossy-compression for the alpha channel and can significantly reduce image size, and also seems to speed up image conversion in some cases. It would be great to have this ability in Pillow also.Additionally an option similar to
-noalpha
where we know the image does not contain any alpha layer saves ~27 bytes per image - not particularly significant but again a nice-to-have for cwebp compatibility.Thanks!
The text was updated successfully, but these errors were encountered: