diff --git a/bin/caesiumclt.exe b/bin/caesiumclt.exe index 37799f2..88c16ae 100644 Binary files a/bin/caesiumclt.exe and b/bin/caesiumclt.exe differ diff --git a/pptx_image_compress.py b/pptx_image_compress.py index ca7590d..741210c 100644 --- a/pptx_image_compress.py +++ b/pptx_image_compress.py @@ -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}"