Skip to content

Commit

Permalink
FIX #60 : XCF gamma is wrong
Browse files Browse the repository at this point in the history
Script-fu ignored colorspace information. We now transform the render input
to rgb, this correctly makes gimp script aware of colorspace ops.
  • Loading branch information
vanyossi committed Dec 16, 2013
1 parent d1b3893 commit d19640f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions artscript2.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -2907,9 +2907,15 @@ proc processHandlerFiles { index ilist {step 1}} {
if { $handler($imgv) == {g} } {
puts "Rendering Gimps"
set i $id(path)
set cmd "(let* ( (image (car (gimp-file-load 1 \"$i\" \"$i\"))) (drawable (car (gimp-image-merge-visible-layers image CLIP-TO-IMAGE))) ) (gimp-file-save 1 image drawable \"$outname\" \"$outname\") )(gimp-quit 0)"
set cmd [format {(let* (
(image (car (gimp-file-load 1 "%1$s" "%1$s")))
(gimp-image-convert-rgb image)
(drawable (car (gimp-image-merge-visible-layers image CLIP-TO-IMAGE)))
)
(file-png-save-defaults 1 image drawable "%2$s" "%2$s"))(gimp-quit 0)} $i $outname]
#run gimp command, it depends on file extension to do transforms.
set extractCmd [list gimp -i -b $cmd]
# puts $cmd
set extractCmd [list gimp -i -b "$cmd"]
}
if { $handler($imgv) == {i} } {
puts "Rendering Ink Scapes"
Expand Down

0 comments on commit d19640f

Please sign in to comment.