blob: 29efef09d2453af028784cb1357194a7411737c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
(define (gimp-convert-to-jpeg quality infile outfile)
(let* ((image (car (file-png-load 1 infile infile)))
)
(gimp-image-flatten 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 1 0 "Mageia Theme" 2 1 0 2 )
(gimp-image-delete image)
)
)
)
|