Skip to content

Commit e75e585

Browse files
amuraruclaude
andcommitted
fix: replace deprecated imaging.quality with per-format quality keys
Hugo deprecated the top-level imaging.quality key in v0.163.0 (removed in a future release). Move the value (75) to imaging.jpeg/webp/avif.quality, preserving identical encoding behavior and silencing the deprecation warning on build. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent e8cd3fb commit e75e585

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

‎config/_default/config.toml‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,15 @@ enableGitInfo = true
166166
# Image processing configuration.
167167
[imaging]
168168
resampleFilter = "CatmullRom"
169-
quality = 75
170169
anchor = "smart"
170+
# Per-format quality replaces the deprecated top-level imaging.quality
171+
# (deprecated in Hugo v0.163.0, removed in a future release).
172+
[imaging.jpeg]
173+
quality = 75
174+
[imaging.webp]
175+
quality = 75
176+
[imaging.avif]
177+
quality = 75
171178

172179
[minify]
173180
minifyOutput = true

0 commit comments

Comments
 (0)