View Single Post
Old 10-21-2018, 09:38 PM   #12
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,248
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by jhowell View Post
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.
Attached Files
File Type: rar Frankenstein - Mary W. Shelley.rar (299.4 KB, 298 views)
thiago.eec is offline   Reply With Quote