Benedikt Meurer 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.Benedikt Meurer wrote:So am I correct is saying that a gif image is actually thumbnailed by converting it to a png? What do you use to do that, imagemagick? I am asking because the 'convert' binary could be used for eps.The image thumbnailers use GdkPixbuf (except for JPEGs, where we use libjpeg directly).The PNG output file must comply with the thumbnail standard, seehttp://jens.triq.net/thumbnail-spec/creation.html#AEN139Ok, I added support to thunar-vfs to load thumbnailers from .desktop files rather than hardcoded defaults. This should make it easier to extend Thunar with new thumbnailers. The stuff is documented in the user guide, which still looks for contributors BTW. ;-) http://thunar.xfce.org/documentation/C/customizing-thunar.html#thumbnailers I'd like to see a repository of additional thumbnailers/scripts. If somebody agrees to maintain the thumbnailers, I can setup a goodies project. I bet there are a lot of interesting file formats, which don't have thumbnailers right now (i.e. I'd very much welcome a TeX thumbnailer, which automatically detects whether to use PDFTeX or LaTeX, and a .fig thumbnailer would also be nice).
agr-thumbnailer.desktop
Description: application/desktop
#!/bin/sh # # agr-thumbnailer - Thumbnailer script for AGR (xmgrace) files. # # Usage: agr-thumbnailer agr-file png-file size # # command line parameters ifile=$1 ofile=$2 size=$3 exec gracebat -hardcopy -hdevice PNG "$ifile" -printfile "$ofile" -fixed $3 $3
_______________________________________________ Thunar-dev mailing list [email protected] http://foo-projects.org/mailman/listinfo/thunar-dev
