Python script to generate thumbnails (via keystrokes) - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Picture Support (https://forum.kodi.tv/forumdisplay.php?fid=265) +--- Thread: Python script to generate thumbnails (via keystrokes) (/showthread.php?tid=346066) |
Python script to generate thumbnails (via keystrokes) - toccata10 - 2019-08-06 My situation: I have all my pictures in folders (year-month) on an external hdd (Tvix/Photos) on a rpi3b+ If I auto-generate thumbnails, when I navigate the 1st time in the folder, it can take a very big amount of time to display these (and I remember vaguely about non-responding interface). So, I decided to prepare these thumbnails while not using my pi: it's hacky, but I couldn't find another way to do it: the idea is to send keystrokes via json. I don't think any tool exists, for now, to do this. You need the kodijson.py file in the same folder as this script (it comes from: https://github.com/jcsaaddupuy/python-kodijson ) Adapt to your own configuration. I wished I could find an easy way to get the number of files per folder, but I don't think it is exposed via json queries. I'm launching this with Spyder3 which is my Ide for python things. I repeat: it seems very hacky, but it does the job for me, so I share it. It works on my transparency skin, with the pictures folders in the "list" view, descending sorting.
RE: Python script to generate thumbnails (via keystrokes) - Uatschitchun - 2019-08-07 Isn't texturecache.py (https://github.com/MilhouseVH/texturecache.py) able to solve this? RE: Python script to generate thumbnails (via keystrokes) - redglory - 2019-08-07 (2019-08-07, 15:46)Uatschitchun Wrote: Isn't texturecache.py (https://github.com/MilhouseVH/texturecache.py) able to solve this?Was going to recommend this great script! RE: Python script to generate thumbnails (via keystrokes) - toccata10 - 2019-08-07 Unfortunately texturecache.py doesn't generate thumbnails for your pictures collection (as far as I know). Maybe there's an option somewhere that I overlooked ? |