[Gimp-user] python-fu grid plugin

2004-10-28 Thread Fernando Sancho
Hi

I'm having problems with pdb.plug_in_grid. This function works ok if
applied on an indexed image, but fails (only draws vertical lines) if
applied on a RGB image.

What's wrong?

Regards.
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user


Re: [Gimp-user] python-fu grid plugin

2004-10-28 Thread Joao S. O. Bueno Calligaris
On Thursday 28 October 2004 15:00, Fernando Sancho wrote:
> Hi
>
> I'm having problems with pdb.plug_in_grid. This function works ok
> if applied on an indexed image, but fails (only draws vertical
> lines) if applied on a RGB image.
>
> What's wrong?
EEEK!! :-)

Bug in the grid.c plug-in.
I will see if it is something I can fix - anyway, if you want, you 
acan open a bugzilla bug for it already - bugzilla.gnome.org

I already could verify it is not python-fu related - it is a problem 
in the plug-in itself.

Regards,
JS
-><-

>
> Regards.
> ___
> Gimp-user mailing list
> [EMAIL PROTECTED]
> http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user


Re: [Gimp-user] python-fu grid plugin

2004-10-28 Thread Joao S. O. Bueno Calligaris
On Thursday 28 October 2004 16:19, Joao S. O. Bueno Calligaris wrote:
> On Thursday 28 October 2004 15:00, Fernando Sancho wrote:
> > Hi
> >
> > I'm having problems with pdb.plug_in_grid. This function works ok
> > if applied on an indexed image, but fails (only draws vertical
> > lines) if applied on a RGB image.
> >
> > What's wrong?
>
> EEEK!! :-)
>
> Bug in the grid.c plug-in.
> I will see if it is something I can fix - anyway, if you want, you
> acan open a bugzilla bug for it already - bugzilla.gnome.org
>
> I already could verify it is not python-fu related - it is a
> problem in the plug-in itself.
>
> Regards,
>   JS
>   -><-
>

I managed to fix it.
I attached a patch to bug #156750 - 
http://bugzilla.gnome.org/show_bug.cgi?id=156750

The plug-in was just ignoring the alpha parameter passed in the calls, 
letting in grabage in it's place. So, sometimes the call would work, 
sometimes don't.

Regards,
JS
-><-
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user


Re: [Gimp-user] python-fu grid plugin

2004-10-28 Thread Sven Neumann
Hi,

"Joao S. O. Bueno Calligaris" <[EMAIL PROTECTED]> writes:

> I managed to fix it.
> I attached a patch to bug #156750 - 
> http://bugzilla.gnome.org/show_bug.cgi?id=156750
>
> The plug-in was just ignoring the alpha parameter passed in the calls, 
> letting in grabage in it's place. So, sometimes the call would work, 
> sometimes don't.

The fact that the script passes garbage is not exactly the fault of
the plug-in. Colors passed via the PDB do actually have an alpha
channel. But since this is a seldomly used feature and since the grid
API is documented to use the opacity values, your fix seems like the
right thing to do.


Sven
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user