Quote:
Originally Posted by jhowell
I tried the book in KFX format on a Kindle Oasis and the gray rectangle was present as you showed. I also sideloaded it to the Kindle for Android app and Kindle for PC. Both of those showed it correctly, without the gray rectangle. So it appears to be a problem specific to e-ink Kindles.
As far as I can tell, in KFX format on an e-ink Kindle an <hr> is rendered with an implicit gray background color. It can be made darker, but not lighter.
Changing the EPUB so that the image is rendered using a <div> instead of <hr> causes it to work properly even on the Oasis. I don't have a work-around other than making this change.
(Thanks for the learning experience.)
|
Thank you very much for the effort and patience, since this is just a minor e very specific problem.
With your guidance, I think I got a solution.
As I was doing some more testing with another image (wich has a white background), I came to realize that the problem was never the images. The problem is with <hr>, like you also figured. More specificaly, the problem lies on the <hr> element background color.
So, I supressed the color hex code (#FFFFFF) and it just solved the problem!
Go figure... It seems that white (#FFFFFF) shows up as a light gray on e-ink screens, or something like that.
See the attached modified Shelly's book (KFX inside the RAR). It now renders correctly on my Kindle Paperwhite, which made me very happy.