Bump up libcaesium to 1.1.0, now also supporting gif
This commit is contained in:
@@ -91,7 +91,7 @@ def compress_with_caesium(original: Path, out_dir: Path, caesium_threads: int |
|
||||
raise RuntimeError("[ERROR] 'caesiumclt' wurde nicht gefunden. Bitte CaesiumCLT installieren und in PATH verfügbar machen.")
|
||||
out_dir.mkdir(parents=True, exist_ok=True)
|
||||
ext = original.suffix.lower()
|
||||
if ext not in {".jpg", ".jpeg", ".png", ".webp"}:
|
||||
if ext not in {".jpg", ".jpeg", ".png", ".webp", ".gif"}:
|
||||
return None
|
||||
cmd = [exe, "-q", str(quality), "-O", "bigger", "-o", str(out_dir)]
|
||||
if caesium_threads is not None:
|
||||
@@ -173,12 +173,6 @@ def process_single_deck(input_pptx: Path, output_pptx: Path, threads: int, quali
|
||||
nonlocal done_count
|
||||
ext = img_path.suffix.lower()
|
||||
orig_size = img_path.stat().st_size
|
||||
if ext == ".gif":
|
||||
with lock:
|
||||
done_count += 1
|
||||
log_lines.append(f"{img_path.name};{human_kb(orig_size)};{human_kb(orig_size)};0;0.0\n")
|
||||
print_progress(done_count, total)
|
||||
return
|
||||
chosen_size = orig_size
|
||||
try:
|
||||
out_sub = scratch_dir / f"img_{idx:06d}"
|
||||
|
||||
Reference in New Issue
Block a user