Bug 183843

Summary: API for thumnail generators which does not require compiled glue
Product: [Frameworks and Libraries] kdelibs Reporter: Stephan Sokolow <kde_bugzilla_2>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED DUPLICATE    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Stephan Sokolow 2009-02-09 22:09:55 UTC
Version:           unknown (using 4.2.00 (KDE 4.2.0), Gentoo)
Compiler:          x86_64-pc-linux-gnu-gcc
OS:                Linux (x86_64) release 2.6.25-gentoo-r7-20080501

While I was using Konqueror 3.5, I ran across a nifty little command intended for Nautilus named swfdec-thumbnailer. I immediately started looking into how thumbnailers like mplayerthumbs hooked into Konqueror in the hopes of adding .swf thumbnailing. Imagine my disappointment when I discovered that I'd have to write a C++ plugin to make it work.

I propose an API which allows thumbnailers to be specified using simple configuration files (perhaps another adaptation of .desktop files?) so that any scriptable command can be used to generate thumbnails for DolphinPart. (I still use Konqueror, so it can't be specific to Dolphin the application)

As I see it, two command formats need to be supported for this to be truly useful without ugly shellscript wrappers for some commands:
- Specify both input and output filename
- Specify input filename and expect the output to appear according to the ~/.thumbnails/ spec.

Of course, the order of the arguments and the position of any options will need to be completely flexible since some commands require positional options, some take the output filename first, and some the input.

For swfdec-thumbnailer, the command-line format is `swfdec-thumbnailer [--size #] <input> <output>`
Comment 1 Christoph Feck 2009-12-31 02:29:03 UTC

*** This bug has been marked as a duplicate of bug 147131 ***