algoo / preview-generator

generates previews of files with cache management
https://pypi.org/project/preview-generator/
MIT License
226 stars 50 forks source link

Feat: Linux Thumbnail based builder as optional fallback builder #247

Open inkhey opened 3 years ago

inkhey commented 3 years ago

Feature description and goals

as explained here: https://github.com/algoo/preview-generator/issues/162#issue-526867558, linux system provide thumbnail helper permitting Gnome/KDE/XFCE/etc... desktop to generate thumbnails for files.

As a fallback, it may be nice to have thumbnail based builder with low weight (use if not other is found).

As result and format supported by thumbnail is by default hard to guess, this feature probably need to be optional.

Prerequisites

see this POC: https://github.com/algoo/preview-generator/commit/469a9c71ede14727ca52786f05ca5f8e02301bbe