Gimp-Forum.net

Full Version: How to remove alpha layer with script-fu
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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]
use: gimp-layer-flatten

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