docs(images): correct misleading AVIF default in RustyImage / TopBanner
Deploy / verify (push) Successful in 41s
Deploy / deploy (push) Successful in 1m5s

The runtime default has been `["webp", "jpeg"]` for a while, but the doc
comments still referenced AVIF. Update them and add the rationale (server-side
AVIF encoding is 5-10× slower than WebP for marginal bandwidth gain).

No runtime change.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Peter Meier
2026-04-27 18:56:39 +02:00
parent 354d3f09d3
commit 9b4191151c
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -32,9 +32,9 @@
style?: string;
/** Pixel-Dichten fürs srcset. Default [1, 2] (Retina). */
densities?: number[];
/** Format-Fallback-Kette. Default ['avif','webp','jpeg']. */
/** Format-Fallback-Kette. Default ['webp','jpeg']. AVIF bewusst ausgelassen — server-seitiger Encoder ist 5-10× langsamer als WebP, Bandbreitengewinn marginal. */
formats?: ("avif" | "webp" | "jpeg")[];
/** JPEG/AVIF/WebP-Qualität. Default 75. */
/** JPEG/WebP-Qualität. Default 75. */
quality?: number;
fit?: "cover" | "contain" | "fill";
/** Cache-Bust-Tag (z.B. post._updated) → `_v`-Param, bricht Browser-HTTP-Cache. */