Hugo v0.163.0

v0.163.0
Added 2
  • Add quality setting per image format in project config
  • Add hint setting for AVIF with lossy compression using YUV420 chroma subsampling for photo/picture content and YUV444 for text/icon/drawing
Changed 1
  • Set default AVIF quality to 60
Fixed 5
  • Force cache invalidation for AVIF target
  • Cap AVIF lossy quality at 99
  • Recover from memory allocation errors in WASM image processors
  • Disconnect from websocket server on page swap in livereload
  • Prevent leading newline in sitemap template
Deprecated 4
  • Deprecate global imaging quality setting in favor of per-format configuration
  • Deprecate Imaging.Compression setting and move it to webp and avif specific configs
  • Deprecate baseUrl setting in jsconfig resources
  • Deprecate IsNode in favor of IsBranch

From Hugo

The main topic in this release is improvements to the AVIF image handling that we introduced in v0.162.0. See the docs for details, but:

  • We have turned down the default quality for AVIF to 60. Turns out, JPEG/WebP with quality 75 is comparable to AVIF with quality 60. You can now also set quality per image format in your project config (and also per image processed if needed).
  • We have added a hint to the AVIF with the same values as for WEBP. For lossy compression, the photo/picture hints (and the default) encodes with YUV420 chroma subsampling instead of YUV444, keeping 444 for text/icon/drawing. This greatly reduces the memory needed to encode these images.
Improvements
  • resources/jsconfig: Remove deprecated baseUrl setting ff2903a9 @bep #14991 #14996
  • all: Adjust tests for deprecated link and image render hook settings ca68936d @jmooring
  • all: Run go fix ./... 781fabf4 @bep
  • pagesfromdata: Use relative path for content adapter template metrics 1d018ef8 @anupamojha-eng #14999
  • ci: Re-add macos-latest to the test matrix 121bc6ce @bep
  • images: Deprecate Imaging.Compression and move it down to webp and avif configs cf18b827 @bep #14998
  • Only support the latest Go version 98ad9b3c @bep #14997
  • page: Add IsBranch and deprecate IsNode b89e7fe6 @bep #11574
  • images: Force cache invalidation for AVIF target e8fefc83 @bep #14990
  • images: Add a per-format AVIF hint setting a043d3ec @bep #14992
  • images: Make AVIF chroma subsampling content-aware via the hint 341f575d @bep #14987
  • Cap AVIF lossy quality at 99 248241b6 @bep #14981
  • config: Deprecate the glogal imaging quality setting 4e47d95d @bep #14979
  • images: Make 60 the default quality for AVIF 03b4b542 @bep #14979
  • livereload: Disconnect from websocket server on pageswap 79be0532 @bep #14983
  • tpl/tplimpl/embedded: Prevent leading newline in sitemap template 0f440460 @bep #14977
  • images: Recover from memory alloc errors in WASM image processors 4e17421e @bep #14985
  • images: Add quality setting per image format b01ecd4c @bep #14957
  • misc: Remove duplicate words in comments 45c00b7c @jmooring #14936 #14950 #14965
  • Add some PNG to AVIF golden test cases 28d882ab @bep
Dependency Updates
  • build(deps): bump github.com/bits-and-blooms/bitset 0d29fc81 @dependabot[bot]
  • build(deps): bump github.com/tetratelabs/wazero bb57404f @dependabot[bot]
  • build(deps): bump github.com/rogpeppe/go-internal from 1.14.1 to 1.15.0 7d1b1fb3 @dependabot[bot]
  • build(deps): bump github.com/getkin/kin-openapi from 0.138.0 to 0.139.0 77a11470 @dependabot[bot]
View original

Upgraded? How did it go?

Discussion