Shell script to create pictures thumbnails offline
You might have seen some of my posts w.r.t. offline creation of thumbnails for jpg pictures. My main kodi host, a raspberry pi3, has not enough compute power to create the thumbnails "fast" enough. Thus I have written a short shell script using sqlite3 and ImageMagick to create all thumbnails offline on a more powerful (linux) host.

This script has two major disadvantages - any filename below you pictures directory must not contain white space characters (a typical limitation for shell scripting), and as a bash shell script it will run only an a linux host.

In my environment I have a 2TB drive connected to my raspi, shared by NFS. It contains the Thumbnails folder and Texture13.db. I access those files by NFS from my linux host. Since sqlite3 does not easily support NFS, my script works on a local copy of Textures13.db and will copy it back when finished.

Just in case my script creates a backup copy of Texture13.db.

My script does have prototype character (not fool proven, no performance optimization). But since I myself plan to run it more or less only once (for my whole pictures library I do not plan major improvements.

But of cause use my script at your own risk.

Since I do not maintain any github project, I've uploaded my script via hastebin:

Store the data as file and make it executable by chmod 755

For more details look into the script itself.

Hope it might be helpful for somebody.

Regards, Michael
Just a short update: In the meantime I've upgraded to kodi matrix 19.3 from OSMC. Thus I can confirm that my script MkTumbs is also compatible with matrix.

Regards, Michael
Just to let you know....your script is not available anymore as we don't store the content for ever and ever on Wink
Thanks for this information, not a problem for me. I can provide it if someone might ask for.

Regards, Michael
(2021-12-30, 12:11)olwaldi Wrote: I can provide it if someone might ask for. has the option to store texts to "Never expire", which is longer than our approx 2 months.
Got a Kodi problem? Provide a full Debug log (wiki) | Usefull pages: First time user (wiki) | Troubleshooting (wiki) | Free content (wiki) | Forum rules (wiki) | VPN policy (wiki)

Logout Mark Read Team Forum Stats Members Help
Shell script to create pictures thumbnails offline0
This forum uses Lukasz Tkacz MyBB addons.