Repository navigation
nightly-736df2d7-ls4
Pre-release
Pre-release
·
13 commits
to nightly
since this release
CI
LinuxServer changes
No changes
Upstream changes
Source: beetbox/beets@736df2d
fetchart: use 10000x10000-999 token for high-resolution iTunes artwork (#7104)
Description
Follow-up to #7045 (thanks to @Kernald for flagging the compression
difference).
In #7045, we replaced the legacy "100000x100000-999" token with
"3000x3000bb" because Apple's daiquiri/5 CDN began rejecting
"100000x100000-999" with HTTP 400 Bad Request.
Testing against mzstatic.com shows two things:
- Why
"100000x100000-999"returnedHTTP 400: Apple's CDN
enforces an exact maximum dimension limit of10000px
(10000x10000-999returns200 OK;10001x10001-999returns400 Bad Request). - Why
"3000x3000bb"returned smaller/re-compressed images:
- Omitting the
-999quality modifier causes Apple's CDN to re-encode
images at JPEG Quality 94 with4:2:0chroma subsampling
(2x2,1x1,1x1), whereas-999serves JPEG Quality 100 (all-1s
quantization table) with4:4:4full chroma (1x1,1x1,1x1). - Capping dimensions at
3000x3000downscales4000x4000masters
(e.g., Daft Punk's Random Access Memories (10th Anniversary Edition)
or Radiohead's OK Computer) to3000x3000.
Comparison on mzstatic.com
For Daft Punk's Random Access Memories (10th Anniversary Edition)
(4000x4000 master):
100000x100000-999.jpg->HTTP 400 Bad Request3000x3000bb.jpg->3000x3000,1,066,767bytes (Quality 94,
4:2:0chroma)10000x10000-999.jpg->4000x4000,7,619,736bytes (Quality 100,
4:4:4chroma)
Solution
Use "10000x10000-999" when high_resolution is enabled, and update
the Unreleased changelog entry from #7045 in place.
To Do
- Documentation.
- Changelog. (Updated the
Unreleasedentry from #7045 in place). - Tests. (Updated
test_itunesstore_artwork_url_resolutionin
test/plugins/test_art.py).