dvschultz / 99problems

99 Problems and e-reader rendering are all of them
60 stars 3 forks source link

inverted colors, images don't invert #3

Open EricWVGG opened 10 years ago

EricWVGG commented 10 years ago

When an e-reader’s palette is inverted (to white on black), images don't invert. This leaves section-separating dashes and chapter drop caps (which are usually bitmaps) looking terrible.

Obviously this should be a preference, or better still an attribute in the ebook markup (say, <img does-invert>

dvschultz commented 10 years ago

a couple partial solutions I can think of for this:

  1. always set the background color to white (not perfect because some readers will force the background to black when in a night mode)
  2. a javascript solution, although that would only work in iBooks for now.
dvschultz commented 10 years ago

Actually, it looks like the Kindle Fire handles this by always make transparent backgrounds white. Not ideal, but it does work.

teytag commented 10 years ago

iBooks Night Mode detect codes is below. PNG alpha file inverted with this code: Jquery and Webkit filter css... For only iBooks

screen shot 2014-07-13 at 4 26 40 pm screen shot 2014-07-13 at 4 26 58 pm screen shot 2014-07-13 at 4 27 22 pm screen shot 2014-07-13 at 4 27 26 pm ipad-invert iphone-invert