Commit 76590c9
committed
fix: propagate per-codec quality to quality_fallback in Format preset
When `format=webp&quality=5` is used, the generic `quality=` param
flows through per-codec encoder hints (webp.quality) but never reaches
CodecIntent.quality_fallback. This caused effective_quality() to return
the default 73.0 instead of 5.0, producing oversized WebP output.
Two fixes in preset_map.rs:
- Extract per-codec quality from encoder hints into quality_fallback
when quality_profile (from qp=) is absent
- Map webp.quality to per-codec hints (was only mapping lossless)1 parent e33b73f commit 76590c9
File tree
2 files changed
+29
-0
lines changed- imageflow_core
- src/zen
- tests/integration/visuals
2 files changed
+29
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
81 | 103 | | |
82 | 104 | | |
83 | 105 | | |
| |||
309 | 331 | | |
310 | 332 | | |
311 | 333 | | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
312 | 337 | | |
313 | 338 | | |
314 | 339 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
0 commit comments