View Single Post
Old 06-20-2024, 07:25 PM   #1
libeluratio
Member
libeluratio began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jul 2012
Device: Kobo
Help with simple plugin development

Hi everyone,

I wrote a simple lua plugin for koreader, enabling a "double screen refresh" when reading.

This can help with reading color mangas/comics to limit ghosting.

But, I would like the plugin to do something only if what is actually displayed is a color image. (At the moment, the "double refresh" is always active, event on text or black and white images).

And I don't know how to do that. My color files in cbz archives contains "_color" in their names so I thought instead of analysing the picture pixel by pixel (probably a bad idea on a e-reader), simply checking the name of the image currently displayed would be a "good" way to go, but I have no idea how to get the name of the image displayed in my lua plugin.

If someone could help me on this one, it would be very nice

Thanks

Last edited by libeluratio; 06-20-2024 at 07:27 PM.
libeluratio is offline   Reply With Quote