FFMpeg-Compressor: Fix typo

This commit is contained in:
OleSTEEP 2023-10-09 23:55:10 +03:00
parent ea893fd8d1
commit 12b7fced03

View file

@ -80,7 +80,7 @@ def compress_image(folder, file, target_folder):
else:
printer.warning(f"{file} has transparency (.jpg not support it). Skipping...")
elif get_req_ext(file) == "webp" and configloader.config['FFMPEG']['WebpRGBA']:
elif get_req_ext(file) == "webp" and not configloader.config['FFMPEG']['WebpRGBA']:
if not has_transparency(Image.open(f'{folder}/{file}')):
printer.files(file, os.path.splitext(file)[0], get_req_ext(file), f"{comp_level}%")
os.system(f"ffmpeg -i '{folder}/{file}' {ffmpeg_params} -compression_level {comp_level} "