It is currently Mon Jul 22, 2024 6:12 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Help with colour selection please
PostPosted: Wed Apr 04, 2018 8:53 am  (#1) 
Offline
GimpChat Member

Joined: Jan 13, 2017
Posts: 6
Attachment:
File comment: Section of file with example
Offending Article.png
Offending Article.png [ 1.27 KiB | Viewed 2819 times ]
Hi...Can someone help with this please. I have a graphic which is yellow. Created in Gimp. Every time I want to changed the colour I select the color I want to replace the yellow with and bucket fill with the replacement colour. I have noticed though that when I increase zoom by enough it becomes apparent that the bucket fill is leaving pixels at the edges of the graphic Im changing the colour of in the original colour. I cant figure out why. When I select by colour it actually selects the area and leaves the ants marching a couple of pixels back from the graphic edge. Grow dosn't help.


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Help with colour selection please
PostPosted: Wed Apr 04, 2018 9:14 am  (#2) 
Offline
GimpChat Member

Joined: Jan 13, 2017
Posts: 6
Never mind ...solved it


Top
 Post subject: Re: Help with colour selection please
PostPosted: Wed Apr 04, 2018 11:00 am  (#3) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4757
Greencup1923 wrote:
Attachment:
Offending Article.png
Hi...Can someone help with this please. I have a graphic which is yellow. Created in Gimp. Every time I want to changed the colour I select the color I want to replace the yellow with and bucket fill with the replacement colour. I have noticed though that when I increase zoom by enough it becomes apparent that the bucket fill is leaving pixels at the edges of the graphic Im changing the colour of in the original colour. I cant figure out why. When I select by colour it actually selects the area and leaves the ants marching a couple of pixels back from the graphic edge. Grow dosn't help.


Because at the edge the pixels have intermediate colors, and these are necessary to keep smooth edges. So if you select too much you replace these by your new color and get a jagged edge, and if you don't they don't get replaced and you have faint edge with the previous color.

The actual solution:

1) do a "color erase": pixels of the color become completely transparent, and the pixels at the edge become partially transparent. Two ways to achieve this: Color>Color to alpha, or bucket-fill in "Color erase" mode.
2) fill the void: fully paint the fully transparent pixels, and paint just enough the partially opaque pixels. Again: two ways: add a new layer under your layer, and bucket-fill with the new color, then merge down, or bucket-fill your layer with the new color using the "Behind" mode. In that mode, paint is applied only on transparency, so that all pixels becomes fully opaque (but those that were already fully opaque remain unchanged).

_________________
Image


Top
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Bleed Colour to Alpha

3

No new posts Attachment(s) Colour Cast Script

0

No new posts Change Foreground Colour

0

No new posts Attachment(s) Old sepia-ish photo to colour

11

No new posts Attachment(s) Image changes colour when posted to GC - RESOLVED

11



* Login  



Powered by phpBB3 © phpBB Group