summaryrefslogtreecommitdiffstats
path: root/gimp/scripts/gimp-normalize-to-bootsplash.scm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-09-07 17:12:31 +0000
committerOlivier Blin <oblin@mandriva.com>2007-09-07 17:12:31 +0000
commite988f5a9d92db50fbc3b8f330a5f997b8d611724 (patch)
tree7f414f8a2b79df7da8c527b5f3d3f80e1868ed26 /gimp/scripts/gimp-normalize-to-bootsplash.scm
parentee1e900188125938d2ba357c59099e62f707e099 (diff)
downloadtheme-e988f5a9d92db50fbc3b8f330a5f997b8d611724.tar
theme-e988f5a9d92db50fbc3b8f330a5f997b8d611724.tar.gz
theme-e988f5a9d92db50fbc3b8f330a5f997b8d611724.tar.bz2
theme-e988f5a9d92db50fbc3b8f330a5f997b8d611724.tar.xz
theme-e988f5a9d92db50fbc3b8f330a5f997b8d611724.zip
convert image to rgb only if layer is not already rgb (fix weird gimp crash)
Diffstat (limited to 'gimp/scripts/gimp-normalize-to-bootsplash.scm')
-rw-r--r--gimp/scripts/gimp-normalize-to-bootsplash.scm3
1 files changed, 2 insertions, 1 deletions
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)