Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to remove alpha layer with script-fu
#1
I need to make action with script-fu: Layer->Transparency->Remove Alpha Channel

[Image: AmtwL0z2Q6CvVjI0498lOQ.png] 

I am using this chunk of script:

(define (pirmas-crop image layer)
  (let* (
          (filename (car (gimp-image-get-filename image)))
        )
    (HERE I WANT INPUT ROW TO REMOVE ALPHA CHANNEL)
    (file-jpeg-save 1 image layer filename filename 0.93 0 0 1 "" 2 0 0 0)
  )
)
[Image: gnrtne]
Reply
#2
use: gimp-layer-flatten

"Remove the alpha channel from the layer if it has one."
Reply
#3
Awesome forum. Thanks!
Reply


Forum Jump: