Re: [Gimp-developer] gimp-drawable-type doesn't work on images?
Simon == Simon Budig [EMAIL PROTECTED] writes: Simon I have not yet checked the problem you mentioned in your Simon other Mail, it might very well be a bug. [...] Simon However, you can easily avoid this problem by moving the Simon menu entry to Image/foo/bar/baz and registering your Simon script with a SF_IMAGE and a SF_DRAWABLE as the first two Simon arguments. Then you have easily access to the image the Simon user invoked the script in and the current active drawable Simon of this image. Yes, I could do that, but I think that will confuse the interface since I do not wish to copy only a particular drawable; I want to copy the entire image. On the other hand, the only person likely to be using this for the foreseeable future is me roland -- PGP Key ID: 66 BC 3B CD Roland B. Roberts, PhD RL Enterprises [EMAIL PROTECTED] 76-15 113th Street, Apt 3B [EMAIL PROTECTED] Forest Hills, NY 11375 ___ Gimp-developer mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer
Re: [Gimp-developer] gimp-drawable-type doesn't work on images?
Roland Roberts ([EMAIL PROTECTED]) wrote: Simon == Simon Budig [EMAIL PROTECTED] writes: Simon Images are *not* drawables. Images are drawable containers. Simon Only Layers, Channels (and Selections which are kind of Simon special case of channels) are drawables. Okay, then how does one determine the type of an image? Do I have to iterate over the layers to find the type? Can an image have layers which are of different types than the parent (e.g., a grayscale layer in an RGB image)? No, the layer types have to be consistent (with the notable exception, that the bottommost layer might not have an alpha channel, all the layers on top of it have to have an alphachannel). You can determine the global image type via (gimp-image-base-type ...) but be aware that the the values returned are not compatible with the values returned by gimp-drawable-type. Bye, Simon -- [EMAIL PROTECTED] http://www.home.unix-ag.org/simon/ ___ Gimp-developer mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer
Re: [Gimp-developer] gimp-drawable-type doesn't work on images?
Simon == Simon Budig [EMAIL PROTECTED] writes: Simon You can determine the global image type via Simon (gimp-image-base-type ...) but be aware that the the Simon values returned are not compatible with the values returned Simon by gimp-drawable-type. Thanks, I thought I had searched the the PDB for type but I guess not or I would have found that. (gimp-image-base-type ...) is exactly what I need. roland -- PGP Key ID: 66 BC 3B CD Roland B. Roberts, PhD RL Enterprises [EMAIL PROTECTED] 76-15 113th Street, Apt 3B [EMAIL PROTECTED] Forest Hills, NY 11375 ___ Gimp-developer mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer