[Thunar-dev] Thumbnails for HTML documents

Benedikt Meurer benedikt.meurer at unix-ag.uni-siegen.de
Tue Jan 2 11:46:38 CET 2007


Erlend Davidson wrote:
>>> Here's one for xmgrace .agr files (which generally contain a graph).
>>> There is one problem however - .agr files have a mime-type of text/ 
>>> plain
>>> so thunar won't know how to distinguish them from any other text  
>>> files.
>> Install a mime type for the .agr files.
> 
> Something else occurred to me when writing this thumbnailer... agr  
> files can often be very very large (>500MB) and so take a long time  
> to thumbnail.  This could also be a slight problem on slower machines  
> with large pixmap/bitmap images.  Is there a 'cutout' filesize, above  
> which thunar will not apply the thumbnailer to the file (because it  
> would take too long)?  It should probably be a customisable parameter  
> to cater for different speeds of machines,

There's no such global parameter right now. But you could file a feature
request for this.

> and perhaps also  
> adjustable from within the .desktop file for each individual  
> thumbnailer (some are more cpu aggressive than others)?

The thumbnailer itself could take care of this. Just check the size of
the input file, and if it's too large, fail (exit with code 1).

Benedikt



More information about the Thunar-dev mailing list