The iOS artwork extractor could pick small colored details over dominant black or white regions, and the old palette rules exaggerated shadow tints.
This samples a 64-pixel sRGB histogram, clusters nearby colors in Oklab, and derives the canvas from regional color, overall color, coverage, and shadow agreement. Shared lightness/chroma calibration replaces the yellow and magenta hue exceptions. Primary text and controls stay white. Reference targets are isolated in a measurement fixture that runtime code never imports; there are no album IDs or title checks in the algorithm.
Depends on #79, and targets its branch. Main-to-branch screenshots include that parent work as well. Android retains its platform extractor and uses the revised shared palette derivation.
Exact matching is not achieved. On the nine measured iOS backgrounds, RGB RMSE is 2.43 channel values, compared with 15.80 for the previous PR head. Broadway Wicked matches exactly; the remaining backgrounds differ by up to 6/255 in a channel. This measures flat canvases, not full UI equality. The exact-match comparison command correctly exits with failure.
Validation: mobile TypeScript and six focused tests pass. All nine revised iPad canvases were pixel-sampled from simulator screenshots and equal the derivation output exactly. All nine albums were recaptured on Android too. Existing iOS/Android development binaries were reused because this iteration changes only TypeScript; the native sampler builds passed in the previous revision.
Run node --test apps/mobile/lib/cover-palette.test.cjs apps/mobile/lib/color-histogram.test.cjs for focused checks. Run node apps/mobile/lib/cover-palette.compare.cjs --exact for the unmet exact-match acceptance check.
Before: main d5c956c. After: 0c1aa73, based on #79 at 6766711. iPad Air 11-inch M2, iOS 27.2, full-screen landscape. Pixel 10 emulator, portrait. Apple Music references are the original supplied files. Main screenshots use main's own native builds; after screenshots use the branch's development builds and current JavaScript.
Wicked: The Soundtrack
Apple Music reference
iPad main
iPad after
Android main
Android after
Wicked (Original Broadway Cast Recording)
Apple Music reference
iPad main
iPad after
Android main
Android after
The Prince of Egypt
Apple Music reference
iPad main
iPad after
Android main
Android after
Civilization VI
Apple Music reference
iPad main
iPad after
Android main
Android after
The Ramblin' Rover
Apple Music reference
iPad main
iPad after
Android main
Android after
I Wanna Be In the Cavalry
Apple Music reference
iPad main
iPad after
Android main
Android after
City of Angels
Apple Music reference
iPad main
iPad after
Android main
Android after
We The Kings
Apple Music reference
iPad main
iPad after
Android main
Android after
Counter-Strike 2
Apple Music reference
iPad main
iPad after
Android main
Android after
Created with gpt-6.1-sol in the Codex harness through T3 Code.
The iOS artwork extractor could pick small colored details over dominant black or white regions, and the old palette rules exaggerated shadow tints.
This samples a 64-pixel sRGB histogram, clusters nearby colors in Oklab, and derives the canvas from regional color, overall color, coverage, and shadow agreement. Shared lightness/chroma calibration replaces the yellow and magenta hue exceptions. Primary text and controls stay white. Reference targets are isolated in a measurement fixture that runtime code never imports; there are no album IDs or title checks in the algorithm.
Depends on [#79](https://gitcoffee.dev/joshuafhiggins/otunes/pulls/79), and targets its branch. Main-to-branch screenshots include that parent work as well. Android retains its platform extractor and uses the revised shared palette derivation.
**Exact matching is not achieved.** On the nine measured iOS backgrounds, RGB RMSE is 2.43 channel values, compared with 15.80 for the previous PR head. Broadway Wicked matches exactly; the remaining backgrounds differ by up to 6/255 in a channel. This measures flat canvases, not full UI equality. The exact-match comparison command correctly exits with failure.
Validation: mobile TypeScript and six focused tests pass. All nine revised iPad canvases were pixel-sampled from simulator screenshots and equal the derivation output exactly. All nine albums were recaptured on Android too. Existing iOS/Android development binaries were reused because this iteration changes only TypeScript; the native sampler builds passed in the previous revision.
Run `node --test apps/mobile/lib/cover-palette.test.cjs apps/mobile/lib/color-histogram.test.cjs` for focused checks. Run `node apps/mobile/lib/cover-palette.compare.cjs --exact` for the unmet exact-match acceptance check.
Before: main `d5c956c`. After: `0c1aa73`, based on #79 at `6766711`. iPad Air 11-inch M2, iOS 27.2, full-screen landscape. Pixel 10 emulator, portrait. Apple Music references are the original supplied files. Main screenshots use main's own native builds; after screenshots use the branch's development builds and current JavaScript.
<details>
<summary>Wicked: The Soundtrack</summary>
| Apple Music reference | iPad main | iPad after |
| --- | --- | --- |
|  |  |  |
| Android main | Android after |
| --- | --- |
|  |  |
</details>
<details>
<summary>Wicked (Original Broadway Cast Recording)</summary>
| Apple Music reference | iPad main | iPad after |
| --- | --- | --- |
|  |  |  |
| Android main | Android after |
| --- | --- |
|  |  |
</details>
<details>
<summary>The Prince of Egypt</summary>
| Apple Music reference | iPad main | iPad after |
| --- | --- | --- |
|  |  |  |
| Android main | Android after |
| --- | --- |
|  |  |
</details>
<details>
<summary>Civilization VI</summary>
| Apple Music reference | iPad main | iPad after |
| --- | --- | --- |
|  |  |  |
| Android main | Android after |
| --- | --- |
|  |  |
</details>
<details>
<summary>The Ramblin' Rover</summary>
| Apple Music reference | iPad main | iPad after |
| --- | --- | --- |
|  |  |  |
| Android main | Android after |
| --- | --- |
|  |  |
</details>
<details>
<summary>I Wanna Be In the Cavalry</summary>
| Apple Music reference | iPad main | iPad after |
| --- | --- | --- |
|  |  |  |
| Android main | Android after |
| --- | --- |
|  |  |
</details>
<details>
<summary>City of Angels</summary>
| Apple Music reference | iPad main | iPad after |
| --- | --- | --- |
|  |  |  |
| Android main | Android after |
| --- | --- |
|  |  |
</details>
<details>
<summary>We The Kings</summary>
| Apple Music reference | iPad main | iPad after |
| --- | --- | --- |
|  |  |  |
| Android main | Android after |
| --- | --- |
|  |  |
</details>
<details>
<summary>Counter-Strike 2</summary>
| Apple Music reference | iPad main | iPad after |
| --- | --- | --- |
|  |  |  |
| Android main | Android after |
| --- | --- |
|  |  |
</details>
Created with gpt-6.1-sol in the Codex harness through T3 Code.
joshuafhiggins
changed title from fix(mobile): extract artwork colors from dominant regions to fix(mobile): derive dark palettes from artwork regions2026-11-09 13:08:56 -05:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
The iOS artwork extractor could pick small colored details over dominant black or white regions, and the old palette rules exaggerated shadow tints.
This samples a 64-pixel sRGB histogram, clusters nearby colors in Oklab, and derives the canvas from regional color, overall color, coverage, and shadow agreement. Shared lightness/chroma calibration replaces the yellow and magenta hue exceptions. Primary text and controls stay white. Reference targets are isolated in a measurement fixture that runtime code never imports; there are no album IDs or title checks in the algorithm.
Depends on #79, and targets its branch. Main-to-branch screenshots include that parent work as well. Android retains its platform extractor and uses the revised shared palette derivation.
Exact matching is not achieved. On the nine measured iOS backgrounds, RGB RMSE is 2.43 channel values, compared with 15.80 for the previous PR head. Broadway Wicked matches exactly; the remaining backgrounds differ by up to 6/255 in a channel. This measures flat canvases, not full UI equality. The exact-match comparison command correctly exits with failure.
Validation: mobile TypeScript and six focused tests pass. All nine revised iPad canvases were pixel-sampled from simulator screenshots and equal the derivation output exactly. All nine albums were recaptured on Android too. Existing iOS/Android development binaries were reused because this iteration changes only TypeScript; the native sampler builds passed in the previous revision.
Run
node --test apps/mobile/lib/cover-palette.test.cjs apps/mobile/lib/color-histogram.test.cjsfor focused checks. Runnode apps/mobile/lib/cover-palette.compare.cjs --exactfor the unmet exact-match acceptance check.Before: main
d5c956c. After:0c1aa73, based on #79 at6766711. iPad Air 11-inch M2, iOS 27.2, full-screen landscape. Pixel 10 emulator, portrait. Apple Music references are the original supplied files. Main screenshots use main's own native builds; after screenshots use the branch's development builds and current JavaScript.Wicked: The Soundtrack
Wicked (Original Broadway Cast Recording)
The Prince of Egypt
Civilization VI
The Ramblin' Rover
I Wanna Be In the Cavalry
City of Angels
We The Kings
Counter-Strike 2
Created with gpt-6.1-sol in the Codex harness through T3 Code.
fix(mobile): extract artwork colors from dominant regionsto fix(mobile): derive dark palettes from artwork regions0c1aa736bftoa1a1987d7c