Re: [Gimp-user] GIMP's gradients are not smooth?

2010-01-10 Thread Sven Neumann
On Sat, 2010-01-09 at 13:13 -0500, Anthony DiSante wrote:

 My monitor is not a CRT, but I think it's pretty good: it's a Samsung 2253BW 
 LCD, from 2008.  Not sure if this tells you much, but on this monitor I can 
 easily distinguish every shade in the color scale from dpreview.com:
 
 http://nodivisions.com/stuff/ext_posts/dpreview.com-color-scale.jpg
 
 But I don't think this is a monitor issue.  Here's an image of a gradient 
 that 
 I found on the web:
 
 http://nodivisions.com/stuff/ext_posts/smooth-gradient.jpg
 
 On my monitor, that looks extremely smooth: I need to blow it up to ~200% 
 before I see the striations, and even then they're nowhere near as rough 
 looking as in the gradient I created in GIMP.  Is that because this is a 
 color 
 gradient whereas my GIMP gradient is in gray?

Oh, are you trying to create this gradient on an image in gray-scale
mode? If you do that, then you are effectively disabling dithering.
Dithering works by introducing errors and the full RGB color-space is
needed for such dithering to yield the desired result.


Sven


___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] Reading sample point locations from Python-fu

2010-01-10 Thread Sven Neumann
On Sat, 2010-01-09 at 18:19 +0100, Mathias Lindner wrote:

 is it possible to read the location of sample points from Python?
 Just as you can e.g. read the anchor points of vectors.

No, there is no PDB API to access sample points (yet). If you need one,
I suggest that you make an API proposal on the gimp-developer list.


Sven


___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] Tip of the Day is not displayed each time

2010-01-10 Thread Sven Neumann
On Sat, 2010-01-09 at 22:06 +0100, Tetsuya Yuasa wrote:
 Hallo,
 
 I know from the online manual:
 http://docs.gimp.org/pl/gimp-tips-dialog.html
 The tip of the day is no longer displayed by default each time you start 
 GIMP.
 
 There is no problem so far.
 But I could not find any information how to use Tip dialog like previous 
 version.
 I want show the dialog each time I start GIMP.
 
 Maybe is it no longer possible to use in that way?

No, it isn't. We might add it back for GIMP 2.8, if someone finds the
time to do that. Until then you can read the tips by accessing the
dialog from the Help menu.

If you are interested in getting the tips dialog back, you should
consider sending us a patch. Please contact us on the gimp-developer
mailing-list if you are interested in such a contribution.


Sven


___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


[Gimp-user] Behaviour of gimp-layer-create-mask with channels

2010-01-10 Thread Gino D
Hi.

I need some clarification on how the Script-Fu procedure
gimp-layer-create-mask acts with channels.

Supposing that the current image holds more than one channel, whether I
wanted to call such procedure with its second argument mask-type set to
ADD-CHANNEL-MASK (6) , how would the Script-Fu interpreter understand
which channel to consider? Or rather, with what additional command should I
specify the chosen channel?
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] Behaviour of gimp-layer-create-mask with channels

2010-01-10 Thread Sven Neumann
On Sun, 2010-01-10 at 11:51 +0100, Gino D wrote:

 I need some clarification on how the Script-Fu procedure
 gimp-layer-create-mask acts with channels.
 
 Supposing that the current image holds more than one channel, whether
 I wanted to call such procedure with its second argument mask-type
 set to ADD-CHANNEL-MASK (6) , how would the Script-Fu interpreter
 understand which channel to consider? Or rather, with what additional
 command should I specify the chosen channel? 

If in doubt, read the source code:

layer_cmds.c (layer_create_mask_invoker):

  if (mask_type == GIMP_ADD_CHANNEL_MASK)
{
  channel = gimp_image_get_active_channel (image);


The procedure will use the active channel. You can set the active
channel using gimp-image-set-active-channel().


Sven


___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] GIMP's gradients are not smooth?

2010-01-10 Thread Sven Neumann
Hi,

On Sat, 2010-01-09 at 13:13 -0500, Anthony DiSante wrote:

  http://nodivisions.com/stuff/ext_posts/gimp-unsmooth-gradient.jpg

 http://nodivisions.com/stuff/ext_posts/smooth-gradient.jpg

Not a fair comparison. Your unsmooth gradient has a much smaller range
than the image of the smooth gradient you are comparing it too. And you
ignore the fact that the smooth gradient is not a grayscale gradient.


Sven


___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


[Gimp-user] GIMP's gradients are not smooth?

2010-01-10 Thread photocomix
You already get a lot of good advices

I will add that just apply a simplicistic but very effective trick may do
marvels

just some gaussian blur on your gradient may create all the smoothness you
may desire ...more the range, more smoothness

(you can't save as gradient a blurred gradient but you may well apply
gaussian blur after applied the gradient)

Hello,

I'm trying to create a smooth radial gradient in GIMP.  I'm doing what I
guess 
is the obvious thing: use the Blend/Gradient tool, set the shape to Radial,

and draw it.  This gives me a decent gradient, but it's not actually smooth.

And it's especially unsmooth when I set the gradient layer's opacity to
~25%, 
which is where I want it to be for the effect I'm trying to achieve.

Here are my files:

http://nodivisions.com/stuff/ext_posts/gimp-unsmooth-gradient.jpg

http://nodivisions.com/stuff/ext_posts/gimp-unsmooth-gradient.xcf.gz

As you can see, there are obvious striations there, rather than a smooth
gradient.

What am I doing wrong?  I've tried it with and without dithering, adaptive 
supersampling, etc; none of that seems to improve it.

I'm using GIMP 2.6.7 on Ubuntu, if that makes any difference.

Thanks,



-- 
photocomix (via www.gimpusers.com)
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


[Gimp-user] SOLVED - copy resynthesizer plugin from 2.6 to 2.7

2010-01-10 Thread Carusoswi
Ok, I have it working now.  I don't understand why there are two storage
locations for each of the installations of Gimp on my machine, but by
carefully following the paths listed by each under
Edit--Preferences--Folders, I was able to figure out what to copy to which
folder.

. . . not that difficult if you are patient, persistent, and have the time to
explore.

BTW, the Smart Remove was crashing on my machine.  I surfed the web and found
(I believe at the Gimp Plug-in Registry site, sorry, my Firefox crashed before
I could bookmark the site) Smart-Remove.scm version that fixed my crashing. 
It installs itself with the menu entry Filters--Enhance--Heal selection as
opposed to Smart-remove, although the name of the script has not changed.

I'm sure this is old hat for most of you on this forum, but, perhaps by
posting, I can help someone just sorting this out for the first time save a
little stress and time figuring it out.

Caruso


-- 
Carusoswi (via www.gimpusers.com)
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] GIMP's gradients are not smooth?

2010-01-10 Thread mac9416
On the contrary, applying a Gaussian blur will have no effect. The
gradient is already as smooth as it will get.

Anthony, is it absolutely necessary that you have a whitetransparency
gradient layer over a background layer? I was able to eyedrop the
center color and outer color and create a one-layer gradient that
looks very smooth.

I can't articulate why a one-layer gradient looks better than
semi-transparent gradient over a background, but it certainly seems to
be the case.

http://mac9416.keryxproject.org/images/gimp-smooth-gradient.png
http://mac9416.keryxproject.org/images/gimp-smooth-gradient.xcf.gz

On Sun, Jan 10, 2010 at 8:54 AM, photocomix for...@gimpusers.com wrote:
 You already get a lot of good advices

 I will add that just apply a simplicistic but very effective trick may do
 marvels

 just some gaussian blur on your gradient may create all the smoothness you
 may desire ...more the range, more smoothness

 (you can't save as gradient a blurred gradient but you may well apply
 gaussian blur after applied the gradient)

Hello,

I'm trying to create a smooth radial gradient in GIMP.  I'm doing what I
 guess
is the obvious thing: use the Blend/Gradient tool, set the shape to Radial,

and draw it.  This gives me a decent gradient, but it's not actually smooth.

And it's especially unsmooth when I set the gradient layer's opacity to
 ~25%,
which is where I want it to be for the effect I'm trying to achieve.

Here are my files:

http://nodivisions.com/stuff/ext_posts/gimp-unsmooth-gradient.jpg

http://nodivisions.com/stuff/ext_posts/gimp-unsmooth-gradient.xcf.gz

As you can see, there are obvious striations there, rather than a smooth
 gradient.

What am I doing wrong?  I've tried it with and without dithering, adaptive
supersampling, etc; none of that seems to improve it.

I'm using GIMP 2.6.7 on Ubuntu, if that makes any difference.

Thanks,



 --
 photocomix (via www.gimpusers.com)
 ___
 Gimp-user mailing list
 Gimp-user@lists.XCF.Berkeley.EDU
 https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] GIMP's gradients are not smooth?

2010-01-10 Thread Anthony DiSante
On 01/10/2010 05:22 AM, Sven Neumann wrote:
 On Sat, 2010-01-09 at 13:13 -0500, Anthony DiSante wrote:
 
 My monitor is not a CRT, but I think it's pretty good: it's a Samsung 2253BW 
 LCD, from 2008.  Not sure if this tells you much, but on this monitor I can 
 easily distinguish every shade in the color scale from dpreview.com:

 http://nodivisions.com/stuff/ext_posts/dpreview.com-color-scale.jpg

 But I don't think this is a monitor issue.  Here's an image of a gradient 
 that 
 I found on the web:

 http://nodivisions.com/stuff/ext_posts/smooth-gradient.jpg

 On my monitor, that looks extremely smooth: I need to blow it up to ~200% 
 before I see the striations, and even then they're nowhere near as rough 
 looking as in the gradient I created in GIMP.  Is that because this is a 
 color 
 gradient whereas my GIMP gradient is in gray?
 
 Oh, are you trying to create this gradient on an image in gray-scale
 mode? 

No, it's an RGB-mode image; it's just that the only colors I'm using in it are 
white and gray.


On 01/10/2010 06:24 AM, Sven Neumann wrote:
  On Sat, 2010-01-09 at 13:13 -0500, Anthony DiSante wrote:
 
  http://nodivisions.com/stuff/ext_posts/gimp-unsmooth-gradient.jpg
 
  http://nodivisions.com/stuff/ext_posts/smooth-gradient.jpg
 
  Not a fair comparison. Your unsmooth gradient has a much smaller range
  than the image of the smooth gradient you are comparing it too.
 

I don't think that's it either.  Here's the smooth one again, along with a new 
one created in GIMP with the same dimensions as the smooth one:

http://nodivisions.com/stuff/ext_posts/smooth-gradient.jpg

http://nodivisions.com/stuff/ext_posts/gimp-unsmooth-gradient-smaller.jpg

That one's better, but still has more visible striations than the non-GIMP 
image.

Or by range are you referring to white-to-gray vs. white-to-blue?  Am I 
running out of intermediate colors faster because white and gray are more 
similar than white and blue?

Ideally what I'd like is a white radial gradient with a transparent 
background, approx. 800px wide and 25% opaque, which I could then overlay on 
any colored background in different situations.  But I guess the color of the 
background will affect how smooth the gradient appears.  Still, I can't seem 
to re-create that non-GIMP smooth gradient using GIMP, even on the same color 
background.

Thanks,

-- 
Anthony DiSante
http://encodable.com/
http://nodivisions.com/

___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] GIMP's gradients are not smooth?

2010-01-10 Thread Sven Neumann
On Sun, 2010-01-10 at 13:04 -0500, Anthony DiSante wrote:
 On 01/10/2010 05:22 AM, Sven Neumann wrote:
  On Sat, 2010-01-09 at 13:13 -0500, Anthony DiSante wrote:
  
  My monitor is not a CRT, but I think it's pretty good: it's a Samsung 
  2253BW 
  LCD, from 2008.  Not sure if this tells you much, but on this monitor I 
  can 
  easily distinguish every shade in the color scale from dpreview.com:
 
  http://nodivisions.com/stuff/ext_posts/dpreview.com-color-scale.jpg
 
  But I don't think this is a monitor issue.  Here's an image of a gradient 
  that 
  I found on the web:
 
  http://nodivisions.com/stuff/ext_posts/smooth-gradient.jpg
 
  On my monitor, that looks extremely smooth: I need to blow it up to ~200% 
  before I see the striations, and even then they're nowhere near as rough 
  looking as in the gradient I created in GIMP.  Is that because this is a 
  color 
  gradient whereas my GIMP gradient is in gray?
  
  Oh, are you trying to create this gradient on an image in gray-scale
  mode? 
 
 No, it's an RGB-mode image; it's just that the only colors I'm using in it 
 are 
 white and gray.
 
 
 On 01/10/2010 06:24 AM, Sven Neumann wrote:
   On Sat, 2010-01-09 at 13:13 -0500, Anthony DiSante wrote:
  
   http://nodivisions.com/stuff/ext_posts/gimp-unsmooth-gradient.jpg
  
   http://nodivisions.com/stuff/ext_posts/smooth-gradient.jpg
  
   Not a fair comparison. Your unsmooth gradient has a much smaller range
   than the image of the smooth gradient you are comparing it too.
  
 
 I don't think that's it either.  Here's the smooth one again, along with a 
 new 
 one created in GIMP with the same dimensions as the smooth one:
 
 http://nodivisions.com/stuff/ext_posts/smooth-gradient.jpg
 
 http://nodivisions.com/stuff/ext_posts/gimp-unsmooth-gradient-smaller.jpg
 
 That one's better, but still has more visible striations than the non-GIMP 
 image.
 
 Or by range are you referring to white-to-gray vs. white-to-blue?  Am I 
 running out of intermediate colors faster because white and gray are more 
 similar than white and blue?

Range was referring to the range of colors your gradient goes through.
Your start and end colors are very close to each other. So there is only
a very limited range of colors between them. That is different in the
smooth gradient you are comparing to. Its gradient covers a larger color
range.

I don't think you can substantially better results than what GIMP will
create for you. But if you are not happy about the result, feel free to
use different software or to patch GIMP to yield a better result.


Sven


___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] GIMP's gradients are not smooth?

2010-01-10 Thread Sven Neumann
Hi,

On Sun, 2010-01-10 at 09:32 -0600, mac9416 wrote:

 Anthony, is it absolutely necessary that you have a whitetransparency
 gradient layer over a background layer? I was able to eyedrop the
 center color and outer color and create a one-layer gradient that
 looks very smooth.
 
 I can't articulate why a one-layer gradient looks better than
 semi-transparent gradient over a background, but it certainly seems to
 be the case.
 
 http://mac9416.keryxproject.org/images/gimp-smooth-gradient.png
 http://mac9416.keryxproject.org/images/gimp-smooth-gradient.xcf.gz

Oh, if Anthony is blending a gradient over a background, then it's
absolutely not surprising that he gets visible banding. At least not
until GIMP starts to use higher bit-depths than 8bit per channel.


Sven


___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] GIMP's gradients are not smooth?

2010-01-10 Thread GSR - FR
Hi,
for...@gimpusers.com (2010-01-10 at 1554.49 +0100):
 You already get a lot of good advices
 
 I will add that just apply a simplicistic but very effective trick may do
 marvels
 
 just some gaussian blur on your gradient may create all the smoothness you
 may desire ...more the range, more smoothness

Err, no, in cases like this, when a smooth transition shows bands
because the colour change is small but the zone is big, the hack is to
use Spread filter, AKA poor man dithering. It requires proper masking,
only work with bands that should be smoother but have no real detail,
etc, etc, but sometimes it can do the trick to fix problems (in photos
or after compositing many layers... if using a gradient, first try
dithering option there, as already suggested).

GSR
 
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user