Welcome, Guest |
You have to register before you can post on our site.
|
Latest Threads |
How to make a watermark o...
Forum: General questions
Last Post: kyolim
10 hours ago
» Replies: 5
» Views: 13,942
|
Linux command that does e...
Forum: Other graphics software
Last Post: rich2005
Yesterday, 06:06 PM
» Replies: 1
» Views: 299
|
reliable Gimp 2.10.38 dow...
Forum: Older Gimp versions (2.8, 2.6....)
Last Post: denzjos
Yesterday, 05:20 PM
» Replies: 2
» Views: 218
|
Batch Color Saturation
Forum: Extending the GIMP
Last Post: rich2005
Yesterday, 07:53 AM
» Replies: 15
» Views: 11,837
|
Photo play-time
Forum: Gallery
Last Post: Ofnuts
Yesterday, 07:32 AM
» Replies: 24
» Views: 21,684
|
BIMP plugin for GIMP 3.10
Forum: Extending the GIMP
Last Post: firefly
09-12-2025, 11:53 PM
» Replies: 2
» Views: 593
|
pl_stroke_arrows GIMP 3.0...
Forum: Extending the GIMP
Last Post: Scallact
09-12-2025, 04:03 PM
» Replies: 0
» Views: 253
|
How do you make text circ...
Forum: General questions
Last Post: rich2005
09-12-2025, 07:18 AM
» Replies: 12
» Views: 3,319
|
New Install, Black Screen...
Forum: OSX
Last Post: akhrameev
09-11-2025, 02:32 PM
» Replies: 3
» Views: 2,991
|
Trouble changing backgrou...
Forum: General questions
Last Post: tomatoSauce23
09-11-2025, 12:50 PM
» Replies: 6
» Views: 1,497
|
|
|
How to copy the same gradient fill to another area? |
Posted by: snowforest - 06-17-2021, 09:35 AM - Forum: General questions
- Replies (1)
|
 |
I made a gradient fill in a certain way in an area of my image. Now I want to copy the same gradient fill, in exactly the same way I did, to another area of my image. How can I do it? I do not see a "match properties" option anywhere, or something like that....
By the way, after I made my gradient fill, if I try to select that area that I filled again, it now selects only a very small part of the area, within that gradient fill. How can I select the whole area AFTER i fill with gradient? Because I wanted to copy , cut or delete that gradient but it doesnt work
|
|
|
PNG vs JPG color off by 1 |
Posted by: af_luther - 06-16-2021, 11:08 PM - Forum: General questions
- Replies (7)
|
 |
I am automating a process in Python and I am loading a PSD into GIMP, changing a fill layer's color, and then exporting the result to JPG and PNG.
I am setting the fill layer to a light grey #3F3F3F (63,63,63). e.g. with
Quote:gimp_color = gimpcolor.RGB(int(rgb[0]), int(rgb[1]), int(rgb[2]))
pdb.gimp_context_set_foreground(gimp_color)
mylayer.fill(FILL_FOREGROUND)
The JPG output has that same color as expected (#3F3F3F).
The PNG output has changed that area to #3E3E3E (62,62,62).
Some other color areas I set are also off by 1 in the PNG, but not the JPG. Out of 6 different fill layers, 4 are correct and 2 are off.
I would like to correct this. In fact, I was thinking PNG would be better because I do have some artifacts in the JPG where the compression changes things a bit and the PNG should be lossless.
I noticed these messages in the output which I thought might be related:
Quote:gimp_color_transform_new: using babl for 'sRGB IEC61966-2.1' -> 'GIMP built-in sRGB'
gimp_color_transform_new: using babl for 'GIMP built-in sRGB' -> 'sRGB IEC61966-2.1'
gimp_color_transform_new: using babl for 'sRGB IEC61966-2.1' -> 'GIMP built-in sRGB'
gimp_color_transform_new: using babl for 'GIMP built-in sRGB' -> 'sRGB IEC61966-2.1'
gimp_color_transform_new: using babl for 'GIMP built-in sRGB' -> 'sRGB IEC61966-2.1'
void gimp_gegl_convert_color_profile(GeglBuffer*, const GeglRectangle*, GimpColorProfile*, GeglBuffer*, const GeglRectangle*, GimpColorProfile*, GimpColorRenderingIntent, gboolean, GimpProgress*): converting buffer took 0.0109 seconds
Any tips on how I can avoid this issue of the color values in the PNG export being slightly off from what I set?
The two places I am seeing the "wrong" value in the PNG is (1) loading it into Paint.net and (2) in a WebGL shader that uses it as a texture. In both of those programs the values I am seeing are the same.
|
|
|
|