From e988f5a9d92db50fbc3b8f330a5f997b8d611724 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 7 Sep 2007 17:12:31 +0000 Subject: convert image to rgb only if layer is not already rgb (fix weird gimp crash) --- gimp/scripts/gimp-normalize-to-bootsplash.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gimp/scripts/gimp-normalize-to-bootsplash.scm b/gimp/scripts/gimp-normalize-to-bootsplash.scm index 6f961d8..16cd52c 100644 --- a/gimp/scripts/gimp-normalize-to-bootsplash.scm +++ b/gimp/scripts/gimp-normalize-to-bootsplash.scm @@ -35,9 +35,10 @@ ) (gimp-image-flatten image) - (gimp-image-convert-rgb image) (let* ((drawable (car (gimp-image-get-active-drawable image)))) + (if (= (car (gimp-drawable-is-rgb drawable)) FALSE) + (gimp-image-convert-rgb image)) (file-jpeg-save 1 image drawable outfile outfile quality 0 0 0 "Mandriva Theme" 0 1 0 0 ) (gimp-image-delete image) -- cgit v1.2.1