Quote:
Originally Posted by s0litaire
Currently the kindle needs to be "restarted" for it to see any new images in the sceensavers folder. which would be a pain.
what we'd need is a way for it to "see" a new image without restarting the device.
I'm wondering if a symlink could be used:
Create a symlink to a blank image from an empty default location (i.e. "00_image_600.jpg") to an image in the "Linkss" folder.
Then the book image is copied and renamed to "00_image_600.jpg" and placed in the "linkss" folder. A script could be written to copy and rename the image from the book to the linkss folder when a book is opened.
If it's the only image in that folder, would the kindle read this new image or the previous one?
|
This would work, but you wouldn't even need the symlink, just a default filename of "cover.jpeg" that would be overwritten with the cover image.
That way you could even have custom screensavers mixed in with the cover image.
This still leaves some problems:
1) How do you know what book the person is reading? Assuming that the kernel is mounting the FAT FS correctly and recording atime, you could have a script that checked the most recent file atime in the documents directory. However, busybox's ls and find commands have no way of checking atime.
2) Extracting the book cover metadata. We can do it, but it would probably need to be written in C and cross-compiled or an awk script -- assuming busybox's awk implementation is complete.