On 9/17/06, Sven Neumann <[EMAIL PROTECTED]> wrote:

On Fri, 2006-09-15 at 09:39 +0930, David Gowers wrote:

> It's much easier to code 'image to selection':
>         c = pdb.gimp_channel_new_from_component(image, GRAY_CHANNEL,

This works for grayscale images only. An RGB image doesn't have a
grayscale component. For grayscale images there is also no point in
writing such a script because you can already choose "Channel to
Selection" from the channel's right-click menu.

I tested it for RGB images and it appears to work correctly.
Perhaps it just uses the 1st channel (R) though.

Gimp-developer mailing list

Reply via email to