Thread: Quick Question
View Single Post
Old 08-28-2019, 11:34 AM   #9
Moonbeam111
Junior Member
Moonbeam111 began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jul 2019
Device: none
Quote:
Originally Posted by Frenzie View Post
Kindles don't need more than 8-bit (or 4-bit really), and neither do Kobos.

I suspect the main loss of color is in the main C files. In settings.c k2settings->dst_color should be set to 1 (or rather allow for a Lua interface override like the DPI property), in functions like k2pdfopt_reflow_bmp and friends I imagine a 24-bit bitmap should be used, and then there's a bunch of presumably much easier to get around stuff in koptinterface.lua and pdfdocument.lua.

Unfortunately however, if I'm going to sit down for a good few hours to work on something I figure my time would be better spent migrating Android to Clang or to see if I can figure out https://github.com/koreader/koreader-base/pull/762 Especially because I know a lot more about the build system than about K2pdfopt.
Ok makes sense. I didn't know the issue was so intricate. I assumed I had some settings wrong or was on a build that didn't support color. If you (or anyone else with the knowledge) manages to get color retained in a PDF Reflow, I would greatly appreciate it! However, it looks as if I'll have to accept my reflows in B&W for now.
Moonbeam111 is offline   Reply With Quote