Files
pptx-image-compress/README.md
2025-09-10 11:19:56 +02:00

37 lines
1.4 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# PPTX Image Compressor (CaesiumCLT only)
**Version 1.0.0**
Ein CLITool, das **PPTX-Dateien** entpackt, alle Bilder in `ppt/media` mit **CaesiumCLT** komprimiert und anschließend wieder zu einer PPTX packt.
Es ersetzt nur dann Bilder, **wenn die komprimierte Version kleiner ist**, schreibt ein **CSV-Log** und zeigt eine **Fortschrittsanzeige** sowie eine **Summary inkl. Laufzeit** an.
---
## Features
- **Nur CaesiumCLT** als Bildkompressor (keine Pillow-Abhängigkeit).
- Unterstützte Bildtypen: **JPG/JPEG, PNG, WebP** (GIF wird übersprungen).
- **Overwrite-Policy:** `-O bigger` (nur überschreiben, wenn Ziel größer ist).
- **Multi-Threading**: Parallele Bildverarbeitung.
- **Log** (`.log` neben der Output-Datei) mit:
`image_name,size_before,size_after,saving,saving_percent`.
- **Sauberes Cleanup**: Keine Caesium-Tempdateien in der finalen PPTX.
---
## Systemvoraussetzungen
- **Windows 10/11 (64-bit)**
- **Keine Admin-Rechte erforderlich**
- **CaesiumCLT** (portabler Download)
- **Python** (portabel, ohne Installation) **oder** fertige EXE
---
## Installation & Setup
### 1) CaesiumCLT installieren
1. Lade **CaesiumCLT** von GitHub herunter:
[https://github.com/Lymphatus/caesium-clt/releases](https://github.com/Lymphatus/caesium-clt)
2. Entpacke `caesiumclt.exe` in einen Ordner, z.B. `C:\Tools\caesiumclt`.
3. Füge den Ordner temporär zum PATH hinzu (optional):
```bat
set PATH=C:\Tools\caesiumclt;%PATH%
```