Quoting Klaus Schmidinger <[EMAIL PROTECTED]>:
"GIMP: Not enough visible layers for a merge. There must be at least two."
The CVS version of the GIMP permits "merging" a single layer. If you
are unable to get the CVS version, you can try the following approach
which applies a 50% (GRAY) mask to the layer.
-------
(let* (
(image (car (gimp-file-load 1 "test.png" "test.png")))
(drawable (car (gimp-image-get-active-layer image)))
(mask (car (gimp-layer-create-mask drawable ADD-WHITE-MASK))))
(gimp-layer-add-mask drawable mask)
(gimp-brightness-contrast mask -127 0)
(gimp-image-remove-layer-mask image drawable MASK-APPLY)
(gimp-file-save RUN-NONINTERACTIVE image drawable "test-50.png"
"test-50.png")
(gimp-quit 0)
)
_______________________________________________
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user