Quote:
Originally Posted by Winkelschraube
Yes, that is the topic.
With your grade 2 (Android 9) is the screensaver option available? On my Poke 2 the screensaver option is not available in the KOReader menu. Neither on the APK of github nor on FDroid. I know the function from my Kindle.
Screenshot: Press and hold the title image and it zooms to full screen and then take a screenshot (tap left bottom and top right). I can also set the path to "/Pictures" and removed the date in "/frontend/ui/widget/screenshoter.lua" so that the file is always "/Pictures/SScover.png".
But I don't know the internal program structure well enough to do the following in an acceptable time: When loading a document, remember on which page to open, go to page 1 (title page), zoom in on the picture, take a screenshot (fixed filename, suppress message), jump to the target page. I would also need a new "class" screenshotcover to be able to take normal screenshots. And sure there is a way to do that invissible. That is more than very tricky for me.
I think it would be smart if KOReader had an adjustable action in the menu when loading documents. E.g. set a sleep timer or save the cover to a file.
|
The screensaver is disabled on android. Because, again, we don't control power routines (like we do on Kobos, for instance).
What is possible is to add a hack to write a png image to a file when a new document is opened. I pointed to that above and suggested a implementation on the emulator because it is easier to debug than android.
In theory you can pretty much do what the screensaver does (ie: show a sleep cover with reading stats) but it will still be a hack (you need to generate the cover when the book is opened, not when the power button is pressed) so you won't see the last stats that happened on your last reading session.
Again, the feature: screensaver, on the platform: android, won't happen, because it is not possible at all!
And again, the feature: write the cover (or some random png) to a file each time a new book is opened, has two parts:
1. Each time a new document is opened emit a new event called `onNewDocument(path/to/document)`
2. Write a plugin that catches onNewDocument and extracts the cover (or fallbacks to another image if the document lacks a cover)
These two things are generic enough and easy to implement. Which is hard is make everything configurable in a way that works for different devices (where to store the png?, which format?) and make the plugin no-op for platforms with a working screensaver implementation.
Anyways: patches welcome, but keep in mind that workaround for self is way easier than writting a plugin that works for everybody