Re: Flatten image into image and alpha

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I believe you can do what you describe (if I understand correctly) using just
the current PDB. You will have to convert your image to Indexed Mode and then
back to RGB in order to create the previews (as Andreas stated, you can only
have 1-bit alpha when using using the GIMP's Indexed Mode).

Below you will find a link to a short Script-fu which I think provides close to
what you want (or perhaps you might just otherwise gain some inspiration from
it). You will have to provide your own code to save the Indexed version and the
resulting layer mask (which is the N-bit Alpha channel), as well as create any
miniaturized previews; the script is merely intended for demonstration of a
technique.

http://www.postbrickfilms.com/saulgoode/GIMP/Scripts/alpha-preview.scm
_______________________________________________
Gimp-developer mailing list
Gimp-developer@xxxxxxxxxxxxxxxxxxxxxx
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux