Re: [Gimp-developer] how to call gimp procedure from text terminal ?
Joao S. O. Bueno Calligaris wrote: On Monday 23 April 2007 21:02, stu seven wrote: I know that, using a function name, and parameters, this can be done in batch mode, for instance... however, all Im looking for is to remotely open the function dialog, via the text terminal. The easiest way I can think of doingthis is writing a python plug-in that will listen to a socket and execute what you type in there once you connect to that socket. Also, you can call a gimp function from a plugin, but (AFAIK) you cannot open the function dialog. Your plugin needs to build its own user interface. (There's probably a feature request somewhere for this.) -- David Hodson -- this night wounds time ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
[Gimp-developer] Blur tool darkens image?
This is what I thought was a bug (I posted herehttp://bugzilla.gnome.org/show_bug.cgi?id=432978) but Sven Neumann says I should discuss it on here first. Basically I've found that blurring an image with the blur tool in 2.3.15 darkens it as well as blurs, but only if there is a darker colour involved in the blur. For example, take any small image and blur it as much as you can. Then take the original image, invert it, blur it as much as you can, then invert it back. You will find that the one you blurred while inverted is much lighter than the one you blurred while normal. This is because the blur tool seems to darken the image. The one you blurred while normal got darker, and the one you blurred while inverted got darker while inverted, and hence was lighter when inverted back. When involved in a blur, darker colours seem to overpower the lights. I've made another video of the effect here: http://schalken.wubbles.net/gimpblurdarkensbug2.ogg Also see the one in the bug report. Using Ubuntu Feisty Fawn. ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] Blur tool darkens image?
0 In article [EMAIL PROTECTED], 0 Jasper Schalken URL:mailto:[EMAIL PROTECTED] (Jasper) wrote: Jasper ... blurring an image with the blur tool in 2.3.15 darkens it Jasper as well as blurs, ... Sounds suspiciously like an accumulation of rounding down in integer arithmetic... anyone? ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] Blur tool darkens image?
Hi, On Wed, 2007-04-25 at 02:41 +1000, Jasper Schalken wrote: This is what I thought was a bug (I posted herehttp://bugzilla.gnome.org/show_bug.cgi?id=432978) but Sven Neumann says I should discuss it on here first. Your video shows the blur tool being used on large areas of black color and small areas of white color. The average of this is a dark gray. Now when you continue to blur, you are mixing a dark gray with black. If you go further, you end up with all black. But there could very well be rounding errors in the blur tool code. There are even most definitely rounding errors as we are only working with 8bit per channel and rounding errors are unavoidable then. But please take a look at the code and see if there's anything we could change to improve this. Sven ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] Blur tool darkens image?
On Tue, 24 Apr 2007 20:57:43 +0200, Sven Neumann [EMAIL PROTECTED] wrote: Hi, On Wed, 2007-04-25 at 02:41 +1000, Jasper Schalken wrote: This is what I thought was a bug (I posted herehttp://bugzilla.gnome.org/show_bug.cgi?id=432978) but Sven Neumann says I should discuss it on here first. Your video shows the blur tool being used on large areas of black color and small areas of white color. The average of this is a dark gray. Now when you continue to blur, you are mixing a dark gray with black. If you go further, you end up with all black. But there could very well be rounding errors in the blur tool code. There are even most definitely rounding errors as we are only working with 8bit per channel and rounding errors are unavoidable then. But please take a look at the code and see if there's anything we could change to improve this. Sven Jasper , your bug says: It's algorithm appears to favour dark colours when they are included in the blur. Why do you say that? Does it still favour dark colours if the image is predominantly white? From my understanding, the average lightness of a given image should always remain constant as it is blurred. What is your understanding , of what blur tool? Is there some specific blur algorithm that you believe does preserve lightness or is this just an assumption you were making? Maybe you could be more precise about what blur you are refering to , there are several IIRC. Please try to be a little more specific about what you are reporting. Thanks. ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] Blur tool darkens image?
just did a simple test * 16x16 rgb image * select half (vertically in my case) and fill in * run the Gaussian blur, 1 blur pixel * Hold Ctrl+F to rerun the filter many times - Image will eventually turn black - Happens for RLE and IIR If its a rounding error, you could see if theres some way to give a more accurate result (cast to float?) - you probably alredy do that.. At worst, you could dither so every second pixel rounds up. [EMAIL PROTECTED] wrote: On Tue, 24 Apr 2007 20:57:43 +0200, Sven Neumann [EMAIL PROTECTED] wrote: Hi, On Wed, 2007-04-25 at 02:41 +1000, Jasper Schalken wrote: This is what I thought was a bug (I posted herehttp://bugzilla.gnome.org/show_bug.cgi?id=432978) but Sven Neumann says I should discuss it on here first. Your video shows the blur tool being used on large areas of black color and small areas of white color. The average of this is a dark gray. Now when you continue to blur, you are mixing a dark gray with black. If you go further, you end up with all black. But there could very well be rounding errors in the blur tool code. There are even most definitely rounding errors as we are only working with 8bit per channel and rounding errors are unavoidable then. But please take a look at the code and see if there's anything we could change to improve this. Sven Jasper , your bug says: It's algorithm appears to favour dark colours when they are included in the blur. Why do you say that? Does it still favour dark colours if the image is predominantly white? From my understanding, the average lightness of a given image should always remain constant as it is blurred. What is your understanding , of what blur tool? Is there some specific blur algorithm that you believe does preserve lightness or is this just an assumption you were making? Maybe you could be more precise about what blur you are refering to , there are several IIRC. Please try to be a little more specific about what you are reporting. Thanks. ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer -- See MetaVR Visuals Used at the Combat Studies Institute http://www.metavr.com/casestudies/baghdadviews.html Campbell J Barton 133 Hope Street Geelong West, Victoria 3218 Australia URL:http://www.metavr.com e-mail: [EMAIL PROTECTED] phone: AU (03) 5229 0241 ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] Blur tool darkens image?
On 25/04/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On Tue, 24 Apr 2007 20:57:43 +0200, Sven Neumann [EMAIL PROTECTED] wrote: Hi, On Wed, 2007-04-25 at 02:41 +1000, Jasper Schalken wrote: This is what I thought was a bug (I posted herehttp://bugzilla.gnome.org/show_bug.cgi?id=432978) but Sven Neumann says I should discuss it on here first. Your video shows the blur tool being used on large areas of black color and small areas of white color. The average of this is a dark gray. Now when you continue to blur, you are mixing a dark gray with black. If you go further, you end up with all black. But there could very well be rounding errors in the blur tool code. There are even most definitely rounding errors as we are only working with 8bit per channel and rounding errors are unavoidable then. But please take a look at the code and see if there's anything we could change to improve this. Sven Jasper , your bug says: It's algorithm appears to favour dark colours when they are included in the blur. Why do you say that? Does it still favour dark colours if the image is predominantly white? From my understanding, the average lightness of a given image should always remain constant as it is blurred. What is your understanding , of what blur tool? Is there some specific blur algorithm that you believe does preserve lightness or is this just an assumption you were making? Maybe you could be more precise about what blur you are refering to , there are several IIRC. Please try to be a little more specific about what you are reporting. Thanks. ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] Blur tool darkens image?
Your video shows the blur tool being used on large areas of black color and small areas of white color. The average of this is a dark gray. Now when you continue to blur, you are mixing a dark gray with black. If you go further, you end up with all black. Well yes that's valid for the one with the small white squares on the black, so lets disregard that example for now. But consider a small image with alternating lines of black and white pixels (stripes fine pattern), it should blur to mid gray (128,128,128) because that is the average of all its pixels, however instead it blurs to pure black (0,0,0). The image has an even number of black and white pixels, why should it blur to black and not white? But there could very well be rounding errors in the blur tool code. There are even most definitely rounding errors as we are only working with 8bit per channel and rounding errors are unavoidable then. But please take a look at the code and see if there's anything we could change to improve this. Hmm sorry if I knew how to code I would have tried to fix it already. :P And sorry for the blank email. :) ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] Blur tool darkens image?
Why do you say that? Does it still favour dark colours if the image is predominantly white? Yes it does. Blurring a white spot on a black image erases the white spot. Blurring a black spot on a white image makes the black spot bigger. I have just tested 2.2 and it also suffers from this. Photoshop doesn't. ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer