FFMpeg-Compressor: Add avif transparency support
This commit is contained in:
parent
40c2683132
commit
9612d30d06
2 changed files with 3 additions and 3 deletions
|
@ -71,7 +71,7 @@ def compress_image(folder, file, target_folder, extension):
|
|||
try:
|
||||
image = Image.open(f'{folder}/{file}')
|
||||
|
||||
if (extension == "jpg" or extension == "jpeg" or extension == "avif" or
|
||||
if (extension == "jpg" or extension == "jpeg" or
|
||||
(extension == "webp" and not configloader.config['FFMPEG']['WebpRGBA'])):
|
||||
if has_transparency(image):
|
||||
printer.warning(f"{file} has transparency. Changing to fallback...")
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
Pillow==9.5.0
|
||||
pillow-avif-plugin==1.4.1
|
||||
Pillow==10.3.0
|
||||
pillow-avif-plugin==1.4.3
|
||||
python-ffmpeg==2.0.12
|
||||
progress==1.6
|
||||
colorama==0.4.6
|
Loading…
Add table
Add a link
Reference in a new issue