
Hopefully with some boost in performance





#!/bin/sh
gimp-console -d -f -s -i -b "(define (quicklook-xcf filename_in filename_out max_size) (let* ((image (car (gimp-file-load RUN-NONINTERACTIVE filename_in filename_in))) (drawable (car (gimp-image-flatten image))) (original-width (car (gimp-image-width image))) (original-height (car (gimp-image-height image))) (t-height (* original-height (/ max_size original-width))) (t-width (* original-width (/ max_size original-height)))) (gimp-image-set-resolution image 72 72) (if (< original-width original-height) (gimp-image-scale image t-width max_size) (gimp-image-scale image max_size t-height)) (gimp-file-save RUN-NONINTERACTIVE image drawable filename_out filename_out)(gimp-image-delete image))) (quicklook-xcf \"$1\" \"$2\" $3)" -b '(gimp-quit 0)';
./test-xcf.sh test.xcf test.png 800
good job
so i tried what quicklookplugins.com says (putting it in library>quicklook and using qlmanage -r in terminal) at first it crashed something (i can't remember what) but it works fine now.