Kodi Community Forum
Media File Thumbnails - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: Media File Thumbnails (/showthread.php?tid=365626)



Media File Thumbnails - jmooremcc - 2021-11-22

I've noticed that when I use the file browser in Kodi, it will display a thumbnail for each media file that is extracted from the file. Is there any way for an addon to access this thumbnail creation functionality?

It would be really nice if something like this existed:

thumb = xbmc.createthumbnail(path)
where path is the media file

The function would save the thumbnail in the thumbnail cache and return a path to the generated file. An addon developer could then assign it to a Listitem or assign it to a label, etc.

Does something like this exist?