Quote:
Originally Posted by pazos
So you have CBZs with a mix of BW and color images?
And you want the "double screen refresh" just on color images, right?
I'm not sure if it is possible to retrieve the specific asset rendered by the engine.
OTOH, it should be easy to just register a couple of actions into the dispatcher to toggle your feature based on the document you're reading. That doesn't fix the issue w/ color vs bw but I can't imagine how that can bother you just on bw pages.
|
Hi, thank you for your answer.
Yes, the idea is to do a double refresh only when the page is color, because it is not needed for bw images (at least on the Inkpad color 3 I'm playing with).
A double refresh is good for decreasing/erasing the ghosting on color image, but it is also a bit annoying when reading (takes longer for the page to be ready). So, since it is not needed for bw image, I would like to be able to detect if the current image is color or bw to know if the plugin should do something (double refresh) or no (simple refresh).
I did not manage how to get the name of the current image displayed, but I saw that I had access to the picture size with self.view.document:getPageBBox(page).
So for the moment, I have a solution that works but is not ideal: When converting my source CBZ to crop and resize image to the Inkpad's resolution, if the image is color, I crop one pixel on the width.
And in my plugin, I check the image width: if it is lower than the screen width, then it is a color image, then the plugin do the double refresh.
I wish to find a better way to do that, but at least for now it is working