[feat, Kobo] On Kobo, drop fb to 8bpp on startup (#4637)
* The Great 8bpp Experiment Swap to 8bpp on Kobo, because we're 'effing grayscale, for pete's sake! * Always swap to 8bpp, no matter the launch method. Because it turned out that, even when restarting Nickel, we had to restore the expected bitdepth ourselves, because pickel/Nickel didn't do the job completely. (I'm going to guess the grayscale flag wasn't getting flipped properly). * Dither every non-transparent icon to the eInk palette * Make sure hasBGRFrameBuffer is only enabled when the Kobo fb actually is @ 32bpp... * Re-process badly grayscaled icons * And re-grayscale that one w/ gamma correction so the squares show up better. * Allow the fbdepth switch to be disabled (in Developer settings). Also, allow setting debug mode that way. Also, forcibly disable verbose logging when disabling debug. * Update setting name to piggyback on the existing check in reader.lua * Update icons postprocessing infopull/4721/head
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 33 KiB |
Before Width: | Height: | Size: 599 B After Width: | Height: | Size: 1.4 KiB |
@ -1,5 +1,11 @@
|
||||
menu-icon.png is post-processed with:
|
||||
|
||||
```bash
|
||||
convert menu-icon.png -set colorspace Gray -separate -average menu-icon-grayscale.png
|
||||
convert menu-icon.png -grayscale Rec709Luma -dither Riemersma -remap eink_cmap.gif -quality 75 png:menu-icon-grayscale.png
|
||||
```
|
||||
|
||||
The intent being to grayscale, dither down to the 16c eInk palette, and save as a 16c paletted grayscale PNG.
|
||||
Start from an RGB copy of the image if you end up with a 256c or sRGB PNG (check via IM's identify tool).
|
||||
|
||||
See https://www.mobileread.com/forums/showpost.php?p=3728291&postcount=17 for more details ;).
|
||||
|
||||
|
Before Width: | Height: | Size: 166 B After Width: | Height: | Size: 518 B |
Before Width: | Height: | Size: 178 B After Width: | Height: | Size: 521 B |
Before Width: | Height: | Size: 159 B After Width: | Height: | Size: 528 B |
Before Width: | Height: | Size: 181 B After Width: | Height: | Size: 582 B |
Before Width: | Height: | Size: 183 B After Width: | Height: | Size: 412 B |
Before Width: | Height: | Size: 294 B After Width: | Height: | Size: 471 B |
Before Width: | Height: | Size: 429 B After Width: | Height: | Size: 455 B |
Before Width: | Height: | Size: 259 B After Width: | Height: | Size: 356 B |
Before Width: | Height: | Size: 207 B After Width: | Height: | Size: 353 B |
Before Width: | Height: | Size: 461 B After Width: | Height: | Size: 642 B |
Before Width: | Height: | Size: 448 B After Width: | Height: | Size: 614 B |
Before Width: | Height: | Size: 440 B After Width: | Height: | Size: 625 B |
Before Width: | Height: | Size: 390 B After Width: | Height: | Size: 538 B |
Before Width: | Height: | Size: 387 B After Width: | Height: | Size: 537 B |
Before Width: | Height: | Size: 389 B After Width: | Height: | Size: 536 B |
Before Width: | Height: | Size: 295 B After Width: | Height: | Size: 509 B |
Before Width: | Height: | Size: 159 B After Width: | Height: | Size: 525 B |
Before Width: | Height: | Size: 164 B After Width: | Height: | Size: 555 B |
Before Width: | Height: | Size: 178 B After Width: | Height: | Size: 369 B |
Before Width: | Height: | Size: 161 B After Width: | Height: | Size: 542 B |
Before Width: | Height: | Size: 201 B After Width: | Height: | Size: 407 B |
Before Width: | Height: | Size: 184 B After Width: | Height: | Size: 391 B |
Before Width: | Height: | Size: 501 B After Width: | Height: | Size: 643 B |
Before Width: | Height: | Size: 356 B After Width: | Height: | Size: 583 B |
Before Width: | Height: | Size: 458 B After Width: | Height: | Size: 606 B |
Before Width: | Height: | Size: 593 B After Width: | Height: | Size: 690 B |
Before Width: | Height: | Size: 884 B After Width: | Height: | Size: 847 B |
Before Width: | Height: | Size: 365 B After Width: | Height: | Size: 549 B |
Before Width: | Height: | Size: 702 B After Width: | Height: | Size: 856 B |
Before Width: | Height: | Size: 199 B After Width: | Height: | Size: 379 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 942 B After Width: | Height: | Size: 891 B |
Before Width: | Height: | Size: 777 B After Width: | Height: | Size: 849 B |
Before Width: | Height: | Size: 144 B After Width: | Height: | Size: 343 B |
Before Width: | Height: | Size: 763 B After Width: | Height: | Size: 806 B |
Before Width: | Height: | Size: 1014 B After Width: | Height: | Size: 891 B |
Before Width: | Height: | Size: 475 B After Width: | Height: | Size: 744 B |
Before Width: | Height: | Size: 484 B After Width: | Height: | Size: 604 B |
Before Width: | Height: | Size: 192 B After Width: | Height: | Size: 366 B |
After Width: | Height: | Size: 377 B |
Before Width: | Height: | Size: 737 B After Width: | Height: | Size: 802 B |
Before Width: | Height: | Size: 928 B After Width: | Height: | Size: 683 B |
Before Width: | Height: | Size: 761 B After Width: | Height: | Size: 610 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 858 B After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 950 B After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 626 B After Width: | Height: | Size: 735 B |
Before Width: | Height: | Size: 844 B After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 2.3 KiB |