View Single Post
Old 02-29-2016, 06:06 AM   #5
Libron
Member
Libron began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Feb 2016
Device: Kindle 5, Kobo Glo HD
Quote:
Originally Posted by davidfor View Post
Libron is talking about on an ereader device. Someone has made a patch for the Kobo devices to reverse the colours. So, instead of black text on a white screen, it is white text on black. But, it does this by reversing everything, so the covers and pictures in books appear as negatives. I think Libron wants an easy way to invert the images before sending them to a device so they will appear correctly on the device when using "night mode".

Libron: Assuming you are doing this for your Glo HD, a quick search found:

Code:
img {
   -webkit-filter: invert(1);
   filter: invert(1);
   }
That is supposed to be CSS3 and supported by webkit based browsers. From memory, the kepub renderer is webkit based, so it might work. You can try putting that into a "kobo_extra.css" file on the device, enabling the option to modify CSS in the driver and sending a book as a kepub (either convert to kepub or use the extended driver - either way will need extra plugins in calibre).
Thanks for the reply. I can't find "kobo_extra.css" on my e-reader, even when I check my Win to show hidden and system files/folders. There are a bunch of css files, but none with that name (see: attachment).
Attached Thumbnails
Click image for larger version

Name:	Screen Shot 02-29-16.PNG
Views:	306
Size:	10.5 KB
ID:	146777  
Libron is offline   Reply With Quote