Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 5,980
» Latest member: alcatala
» Forum threads: 7,395
» Forum posts: 40,277

Full Statistics

Latest Threads
Color fill into pasted la...
Forum: General questions
Last Post: RealGomer
7 hours ago
» Replies: 0
» Views: 50
Arrow Script
Forum: Extending the GIMP
Last Post: Chris Thompson
8 hours ago
» Replies: 133
» Views: 168,705
crop and straighten photo...
Forum: General questions
Last Post: rich2005
10 hours ago
» Replies: 1
» Views: 60
ofn3-layer-tiles
Forum: Extending the GIMP
Last Post: karaxus
Yesterday, 10:53 AM
» Replies: 7
» Views: 1,025
Slowing down
Forum: General questions
Last Post: rich2005
Yesterday, 10:33 AM
» Replies: 2
» Views: 207
Script-Fu in GIMP 3 websi...
Forum: Extending the GIMP
Last Post: pixelmixer
Yesterday, 10:22 AM
» Replies: 13
» Views: 1,249
AppImage for 2.10.38
Forum: Alternate Gimp packagings
Last Post: Tas_mania
05-07-2025, 11:10 PM
» Replies: 4
» Views: 282
I can' show the two layer...
Forum: General questions
Last Post: blogsofwardotme
05-07-2025, 09:10 PM
» Replies: 2
» Views: 146
Map to cylinder adding ra...
Forum: General questions
Last Post: n4mwd
05-07-2025, 06:46 PM
» Replies: 2
» Views: 128
Forced to operate Gimp 3....
Forum: Gimp 2.99 & Gimp 3.0
Last Post: rich2005
05-07-2025, 03:22 PM
» Replies: 1
» Views: 102

 
  How to Dispose of Gegl Color
Posted by: silenuznowan - 04-13-2025, 03:46 PM - Forum: Scripting questions - Replies (3)

I have a script that does some selects and cuts based on color.
   

Code:
image = pyi.file_load(r'/windows/projects/5150/Graphic Prefabs for Maps/geomorphs/hi-res/dead_parrot/legend/blank/4cb2d3ac-a815-4728-a8a1-0fac1e5e1e6f-018.png')
    color = Gegl.Color.new("black")

    layer = image.get_layers()[0]
    pyi.layer_add_alpha(layer)
    pyi.image_select_color(image, Gimp.ChannelOps.REPLACE, layer, color)
    pyi.gimp_selection_invert(layer)
    pyi.drawable_edit_clear(layer)
    pyi.image_resize(image, 7857, 6068)
   
    pyi.file_save(image, r'/windows/projects/5150/Graphic Prefabs for Maps/geomorphs/hi-res/dead_parrot/test/end.png')
    pyi.gimp_selection_none(image)
    pyi.image_delete(image)
    color.do_dispose()
    del color

    pyi.gimp_quit(False)

When run it either reports 1 or 2 leaked buffers. I have tried to dispose of the color item but have as yet been unsuccessful.  When run without any color creation like this, it runs with no buffer leaks.

Code:
    image = pyi.file_load(r'/windows/projects/5150/Graphic Prefabs for Maps/geomorphs/hi-res/dead_parrot/legend/blank/4cb2d3ac-a815-4728-a8a1-0fac1e5e1e6f-018.png')
    layer = image.get_layers()[0]
    pyi.layer_add_alpha(layer)   
    pyi.image_resize(image, 7857, 6068)  
    pyi.file_save(image, r'/windows/projects/5150/Graphic Prefabs for Maps/geomorphs/hi-res/dead_parrot/test/end.png')
    pyi.gimp_selection_none(image)
    pyi.image_delete(image)  
    pyi.gimp_quit(False)

  Hoping someone can help me find the problem.  Here's the output, this time it was just one leaked buffer but sometimes it is two:

Quote:Leaked buffer allocation stack trace:
/usr/local/lib64/libgegl-0.4.so.0(+0x4eefa) [0x7f1aac639efa]
/lib64/libgobject-2.0.so.0(g_type_create_instance+0x271) [0x7f1aac867af1]
/lib64/libgobject-2.0.so.0(+0x1d684) [0x7f1aac84b684]
/usr/local/lib64/libgegl-0.4.so.0(+0x4f2a8) [0x7f1aac63a2a8]
/lib64/libgobject-2.0.so.0(+0x1dc34) [0x7f1aac84bc34]
/lib64/libgobject-2.0.so.0(g_object_new_valist+0x1a7) [0x7f1aac84e0d7]
/lib64/libgobject-2.0.so.0(g_object_new+0x99) [0x7f1aac84e849]
/usr/local/lib64/libgegl-0.4.so.0(gegl_buffer_new+0x68) [0x7f1aac63ac78]
gimp(gimp_layer_add_alpha+0x86) [0x502c46]
gimp() [0x59edb7]
gimp(gimp_procedure_execute+0x1da) [0x6271ba]
gimp(gimp_pdb_execute_procedure_by_name_args+0x159) [0x623cb9]
gimp(gimp_plug_in_handle_message+0x63b) [0x63cc9b]
gimp() [0x62c496]
/lib64/libglib-2.0.so.0(+0x5f638) [0x7f1aac737638]
/lib64/libglib-2.0.so.0(+0x61398) [0x7f1aac739398]
/lib64/libglib-2.0.so.0(g_main_loop_run+0x77) [0x7f1aac739dc7]
gimp(gimp_plug_in_manager_call_run+0x6b1) [0x63e2a1]
gimp() [0x6323de]
gimp(gimp_procedure_execute+0x1da) [0x6271ba]
gimp(gimp_pdb_execute_procedure_by_name_args+0x159) [0x623cb9]
gimp(gimp_batch_run+0x1f5) [0x67b8c5]
gimp() [0x67757b]
/lib64/libgobject-2.0.so.0(g_closure_invoke+0x138) [0x7f1aac8458f8]
/lib64/libgobject-2.0.so.0(+0x2b5d3) [0x7f1aac8595d3]
/lib64/libgobject-2.0.so.0(+0x2cfe9) [0x7f1aac85afe9]
/lib64/libgobject-2.0.so.0(g_signal_emit_valist+0x32) [0x7f1aac860ad2]
/lib64/libgobject-2.0.so.0(g_signal_emit+0x8f) [0x7f1aac860b7f]
/lib64/libgio-2.0.so.0(+0xed0a0) [0x7f1aac4b00a0]
/lib64/libgio-2.0.so.0(g_application_run+0x107) [0x7f1aac4b0237]
gimp(app_run+0x1ea) [0x677aca]
gimp(main+0x365) [0x4bde55]
/lib64/libc.so.6(+0x2b12e) [0x7f1aab02b12e]
/lib64/libc.so.6(__libc_start_main+0x8b) [0x7f1aab02b1f9]
gimp(_start+0x25) [0x4bdfa5]

EEEEeEeek! 1 GeglBuffers leaked

Thanks in advance.

Print this item

  drawing cylinders and lines - and adding some shadows...
Posted by: saint_m - 04-13-2025, 12:09 PM - Forum: General questions - Replies (1)

are we able to draw such a image in GIMP


Well i guess that the cylinders will be placed on the drawing panel in GIMP so that we have them ( lets say we take the number of 10 cylinders ) - all over the drawing panel.

then - in a second step i try to draw the line - and thirdly




Well - i think that we can do this with the GIMP. This would be a somewhat difficult task because the shadow would be hard to achieve...

What do you say!? Smile


well unfortunatley i am not allowed to add any data.

everytime i add a image i  get this:


Request Entity Too Large
The requested resource does not allow request data with POST requests, or the amount of data provided in the request exceeds the capacity limit.


so what can i do now!? shouold (/could) i add some images to imgur

Print this item

  GIMP 3.0.2 bug (?) - TIFF image
Posted by: dziadekles - 04-13-2025, 06:21 AM - Forum: Gimp 2.99 & Gimp 3.0 - Replies (9)

The image: CR2 file. The system: Win 11. Display profile: none.
No processing was applied in any of the images listed below.

I compared the following:

-CR2 file opened in RawTherapee
-and subsequently opened in GIMP
-GIF export from GIMP, viewed in Photos & GIMP
-JPG export from GIMP, viewed in Photos & GIMP
-TIFF export from GIMP, viewed in GIMP

-CR2 file opened in DPP4, (Digital Photo Professional)
-TIFF created in DPP4, viewed in Photos & GIMP

CR2 file opened in PW8, (Picture Window 8)
-TIFF created in PW8 viewed, in Photos & GIMP

All these images match in terms of color and lightness (they are identical, at least to my eyes).

The TIFF files created in GIMP, DPP4 and PW6 all can be opened in GIMP and look the same.
The TIFF file created in GIMP can be opened in Photos, but the luminosity is off (the image is much lighter).
The TIFF file created in GIMP can't, however, be opened in DPP4 or in PW8. 


Conclusion: there is some problem with file conversion in GIMP3.0.2. The TIFF standard is not supported to the extent that it can be opened with different photo processing software. Neither DPP4 nor PW8 have this problem: their respective TIFF files are fully interchangeable, produce identical images using all processing software or image viewers - but can't be opened in GIMP...

This looks like a bug to me (unless there is some sensible explanation), but I am not sure how to report this...



Attached Files Thumbnail(s)
   
Print this item

  Welcome screen missing
Posted by: Ritergeek - 04-12-2025, 02:28 PM - Forum: Gimp 2.99 & Gimp 3.0 - Replies (1)

I just installed GIMP 3.0 on Windows 11 and am blown away by its new power. I don't recall turning off the Welcome Screen and would not know about it if I hadn't seen it in a YouTube video. I want to change the size of the text. How can I turn that Welcome Screen on again? Or is there another way to alter font size?

Print this item

  Color management and soft proofing
Posted by: dziadekles - 04-12-2025, 11:47 AM - Forum: Gimp 2.99 & Gimp 3.0 - Replies (4)

I like the new incarnation of GIMP very, very much  Smile
But there are some things which maybe could be clarified for me by more experienced users (I am new to GIMP, tried the previous versions and found them difficult ad somewhat confusing, but this one is really good - from the GUI perspective at least). I used Photoshop extensively in the past - and converted to GIMP after ADOBE decided to cancel my "lifetime" license (comp crashed, lost Photoshop, couldn't re-install as the license servers are off-line).

1) COLOR MANAGEMENT (GIMP 3.0.2)
-The way I understand it, monitor profile is specified in Edit - Preferences - Color Management - Monitor profile. Selecting the monitor profile here will affect the image view in the main window (yes/no). Currently I see no difference between calibrated and uncalibrated monitor (but the profile created with i1 Pro wasn't much different from the manufacturer profile anyway, so maybe this is OK. My monitor was spot-on straight out of the box BTW).

-There is no option for specifying printer profile anywhere (yes/no). Printer profile (paper) is specified in the printer setup (yes/no)

2) SOFT PROOFING
I am a bit confused here.
-'View - Color Management - Proof Colors (on/off)' appears to just activate the option for soft proofing in 'Image - Color Management - Soft proof Profile'. This seems to be somewhat redundant, as by default the option in 'Image - Color Management - Soft proof Profile' is set to "None". Selecting any profile other than "None" should activate soft proofing. IMHO this redundancy should be removed, as it is confusing and superfluous.

-It would be nice if it was possible to remove profiles from the list. Currently GIMP remembers all the profiles selected in any Color Management. Selection of the profile is done by either LEFT or RIGHT mouse click on a profile in the list. Why ? It would be nice if the right click enabled removal of the profile from the list instead of selecting it. Otherwise the list will be a kilometer long (OK, I am exaggerating, but still...)

Print this item

  Gimp 3.0.2 not starting in Ubuntu
Posted by: KnowNothing - 04-10-2025, 10:30 PM - Forum: Gimp 2.99 & Gimp 3.0 - Replies (4)

Had earlier problems, I could not get Gimp to interact with Darktable or Rawtherapee to import my Canon raw files.  I was just starting to Learn how to use those programs to create a usable file that Gimp would recognize and import.  The PP3 format was not working so I was using the tiff files but now a new problem.
today Gimp 3.0 would not load.  the icon was present and the little wheel would spin for a bit but the program would not start.  I next tried to open a file using the "open with" function and clicking on Gimp in the drop down.  Same thing, spinning wheel and then nothing.  I tried to reboot and no joy.  I tried a complete shut down and no good.  I uninstalled gimp and tried a reinstall, no good.  I tried both a snap version and one from the website.  I have gone back to 2.10 and it works and I can again import raw files via DT and RT.  Not sure what the issue might be and I don't really need the newest bells and whistles to do what I want so I am going to stick with my current version, but I wondered if anyone else has experienced a similar issue and how it was resolved.

Print this item

  Gimp Color Pixel Degrayscaler Tool
Posted by: mathewbailey08 - 04-09-2025, 11:08 PM - Forum: Tutorials and tips - Replies (2)


.xcf   ghsv1.xcf (Size: 118.57 KB / Downloads: 32)
I made a color pixel degrayscaler tool for Gimp in 3.0.2/. It finds basic colors (R,G,B,C,M,Y) in hue,saturation & value of pixels prior to grayscale conversion
by looking at value of grayscale pixels & matching them to non-grayscaled pixels in above mentioned colors so they can checked for RGB & LCH channel values.



Gimp Color Pixel Degrayscaler Tool

What It Does

Finds basic colors (R,G,B,C,M,Y) in hue,saturation & value of pixels prior to grayscale conversion/full
color desaturation by looking at value of grayscale pixels & matching them to non-grayscaled/non-desaturated
pixels in above mentioned colorsfor checking the RGB & LCH channel values,plus how to colorize grayscale images using this tool.

File Format

Image is in XCF format.

How To Use

Download or save file,then open in Gimp  as XCF under the ghsv1.xcf file name (grayscale,hue,saturation,value for short)
After opening in Gimp,make two duplicate images & close original. Select second duplicate
image,click Image & convert to grayscale,copy grayscale duplicate & paste it
as layer in place to first duplicate image. Zoom to 1600%,scroll fully up
then fully left with eye on background copy layer off. Use horizontal
& vertical position scales in image window (top & left edges) & in bottom left of image window,
pixel position numbers with px selected. Image should appear as shown as follows:
Beginning at 0 vertical position,grayscale value stripe,(gray value of 0 to 255)followed by two hue stripes,
RGBCMY stripes for saturation,RGBCMY stripes for value. Color picker tool should be set
to example,foreground color with use info window checked. Use select by color &
click on position (horizontal image scale) of grayscale stripe value pixel matching
the position to locate value of pixel in your grayscale image as shown after
selecting background copy as highlighted. Make certain that select by color tool
is set to composite & threshold set to 0.0 with other options such as antialiasing
for example unchecked before doing above. Scroll right until highlighted selection areas
in stripes are seen.(ex.91,3 referring to horizontal & vertical positions
of selected areas) & select background layer if you're colorizing your grayscale image
after converting it to RGB,then use color picker in the mentioned highlighted selection areas.

Colorizing with Gimp Color Pixel Degrayscaler Tool


I devised a way to colorize grayscale images after duplicating & converting them to RGB.
It uses a checkerboard pattern in a 3 by 3 pixel image. Use File,New & set the vertical
& horizontal number of pixels to 3. Zoom to 1600% & scroll to upper left corner.
The three rows in the checkerboard pattern is follows: top row: RGB,
middle row:GBR,bottom row:BRG. Don't forget to set pencil/brush tool to pencil & pixel size to 1 for each of the nine pixels in the pattern.
You can copy the pixel colors from the top row with the color picker,then pencil, & use it with the pencil
for the middle & bottom rows of pixels. Next,set the ellipse/rectangle tool to rectangle & draw a 3 by 3 pixel
square around the pattern. Copy it then use the pattern image in edit to transfer it to the highlighted selection
areas in the RGB converted duplicate of the grayscale image you're coloring. To begin coloring the mentioned grayscale image,
zoom to 1600% as before & again scroll to the upper left corner & select the first pixel with select by color
& use the pattern image in edit as above. This is for Gimp 3 but can be used in the 2.10 versions.
To  separately change the red,green & blue pixels in the pattern,for example, click with color select on the red
pixels in the mentioned checkerboard using "Use select by color & click on position(horizontal image scale)..."
as above in the tool image & repeat the procedure for the green & blue pixels in the checkerboard. (forgot to mention
you need to use bucket fill set on fill whole image/selection when separately changing the red,green & blue pixel colors
in the checkerboard.


I hope someone can speed up this coloring procedure by automating what parts of it can be automated & doing things manually
for the rest of it. This is not an AI tool. For example I uploaded a solid red image converted to grayscale & some AI's,even online don't properly convert the image
to the correct color for R255,G0,B0 values.

Print this item

  layer list has "eyes" with background
Posted by: whburling - 04-09-2025, 11:05 PM - Forum: General questions - Replies (3)

some  "eye" symbols, indicating a layer is visible, have a background. what does it mean. how do i get rid of it?

Print this item

  group layer and line width
Posted by: whburling - 04-09-2025, 10:32 PM - Forum: General questions - Replies (2)

can i change the line widths in all the layers within a group layer? 

for example, if i select a group layer and then select pencil and change the pencil width, will all the lines within the group layer change?
if not what do i do so that i can change all the lines in a set of layers?

thank you

Print this item

  change colors
Posted by: bnmjeff1 - 04-09-2025, 05:04 PM - Forum: General questions - Replies (9)

I have a Jpeg of a line drawing. There are blue and red lines. I want to fill in the blue sections and change all the lines red and blue to black so I can make a Cricut cut file from it. Is there an easy way to do it?? I know it's a broad question....

I've attached the JPEG...


Jeff



Attached Files Thumbnail(s)
   
Print this item