![]() |
Save the cover as an image file when loading a document
How can I specify that when a document is opened, the cover is saved as an image file with a fixed name?
|
I don't think you can. Is that an option in another program?
|
It would be helpful if you could describe how you wanted to use the image/file. You can take a screenshot that will be saved as a .png, with a name Reader_date_time.
When you take a successful screenshot, you are given where the snapshot png is stored and offered an option to set it as the screensaver. (The option won't work if the OS on your device manages the screensaver function, like Android does on my note 2.) Luck; Ken |
Hello my friend. :)
I want to make a screensaver from the cover. I have an android reader. I can then link to a picture as a screensaver. Best would be something like /koreader/currentcover.png or something like that. |
Quote:
|
See https://github.com/koreader/koreader/issues/5732. It is a non-fixable thing.
You can, of course, hack the code to write the screensaver to a jpg/png file each time a new document is opened. I would suggest to develop that on the emulator, not directly on a android device. When you manage to modify the code you'll need to import your modified files in the program each time the program is updated. You can use a modified version of https://github.com/koreader/koreader...ation-patterns |
Quote:
Quote:
I'll have a look at the code, but I don't know any Lua. :/ Does KOReader create a log file with the last loaded file? A suggestion from me would be a script that is executed with every document load. |
Quote:
Quote:
The scripts there are just for android and made sense because there's no easy way for users to customize the program on that platform. |
Ok the emulator is running. :)
But you're right, Android doesn't take a changing image file as screensaver. |
I didn't know your Kindle PW2 was running under an Android OS, is that something you added yourself?
|
|
Quote:
|
Cool. What do you use it for?
|
Quote:
|
Parts of it would be theoretically quite simple, such as writing whatever you want as the screensaver to a file. But as @pazos said it's not quite clear to me if this isn't too low-level and device specific in a way that would require running the program as root. Please see https://github.com/koreader/koreader/issues/5732 :)
|
| All times are GMT -4. The time now is 10:15 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.