99problems icon indicating copy to clipboard operation
99problems copied to clipboard

inverted colors, images don't invert

Open EricWVGG opened this issue 11 years ago • 3 comments
trafficstars

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>

EricWVGG avatar Mar 11 '14 20:03 EricWVGG

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 avatar Mar 31 '14 17:03 dvschultz

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

dvschultz avatar May 14 '14 16:05 dvschultz

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

teytag avatar Jul 13 '14 13:07 teytag