feat: ensure image output format matches file extension
All checks were successful
Continuous Integration / Build Package (push) Successful in 30s
Continuous Integration / Lint, Check & Test (push) Successful in 45s

- Add hokusai/image.py with Pillow-based format detection and conversion
- Pass output_format to OpenAI gpt-image models and BFL API
- Convert mismatched images after provider writes (fallback for all providers)
- Handle RGBA-to-RGB flattening for JPEG targets
- Add Pillow dependency
This commit is contained in:
Konstantin Fickel 2026-02-21 19:04:33 +01:00
parent d8e0ed561d
commit 770f408dad
Signed by: kfickel
GPG key ID: A793722F9933C1A5
7 changed files with 348 additions and 92 deletions

View file

@ -10,6 +10,7 @@ dependencies = [
"mistralai>=1.0.0",
"networkx>=3.6.1",
"openai>=2.21.0",
"pillow>=11.0.0",
"pydantic>=2.12.5",
"pyyaml>=6.0",
"typer>=0.23.1",