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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 5,125
» Latest member: drtom
» Forum threads: 7,808
» Forum posts: 42,413

Full Statistics

Latest Threads
How to change mouse wheel...
Forum: General questions
Last Post: Unis_Torvalds
10 hours ago
» Replies: 5
» Views: 14,717
Can't load RAW files
Forum: General questions
Last Post: rich2005
Yesterday, 10:45 AM
» Replies: 4
» Views: 155
A selection of old spoof-...
Forum: Gallery
Last Post: TumbleRocks
02-14-2026, 09:30 PM
» Replies: 7
» Views: 8,413
Drawing Tablet for GIMP -...
Forum: General questions
Last Post: rich2005
02-14-2026, 09:53 AM
» Replies: 1
» Views: 151
Chlorophyll and Colour ch...
Forum: General questions
Last Post: rich2005
02-13-2026, 04:04 PM
» Replies: 1
» Views: 135
file-glob always returns ...
Forum: Scripting questions
Last Post: Jts-gimp
02-13-2026, 12:17 PM
» Replies: 7
» Views: 2,636
No longer launches on my ...
Forum: Linux and other Unixen
Last Post: threeneurons
02-12-2026, 10:46 PM
» Replies: 1
» Views: 133
Cannot open camera raw im...
Forum: Windows
Last Post: Zbyma72age
02-11-2026, 04:33 PM
» Replies: 5
» Views: 399
How to rotate selection
Forum: General questions
Last Post: depmco
02-10-2026, 08:15 PM
» Replies: 3
» Views: 339
How to make a mask from a...
Forum: Extending the GIMP
Last Post: Scallact
02-10-2026, 07:45 PM
» Replies: 10
» Views: 696

 
  Dithering Script-Fu
Posted by: hudsonja - 06-21-2019, 08:48 PM - Forum: Scripting questions - Replies (4)

I'm using GIMP 2.10.6 on Ubuntu 18.10.  
I'm trying to script an automatic image manipulation, and for part of the workflow I need to dither a layer in my image.

I can't find anything that exposes the functionality provided by the dialogue located at Colors > Dither...
[Image: IkRkuYe.png]

Am I missing something?  Or does it just not exist?

Print this item

  Noob needs a hand...
Posted by: vndep - 06-21-2019, 08:32 PM - Forum: Scripting questions - Replies (2)

Hi, All,

Noob here.  I am trying to write a very simple GIMP-python script; all I want to do is:

(a) starting with a clean background
(b) read a .jpg file from my disk into an image object (e.g., a blue sky with clouds)
© have the image appear on top of the background
(d) write some text in black on top of the image (e.g., "Sample Text")
(e) save the whole thing as a new .png file somewhere on my disk.

I am almost all the way there; I am getting an error when I save (noted below) using this line:     
pdb.gimp_file_save(1, new_img, layer, outputpath, 'AAA_TEST.png')


Thanks in advance!  All help is welcome!

CODE FOLLOWS:


def python_sample_scriptC(image, layer) : #FUNCTION DEFINITION
    pdb.gimp_image_undo_group_start(image)
    pdb.gimp_context_push()

    imagepath = 'G:/Users/Star/Dropbox/Projects/Stock photos/blue-clouds-day-53594.jpg'
    outputpath = 'G:/Users/Star/Dropbox/Projects/Stock photos/AAA_TEST.png'
    text = 'SAMPLE TEXT'
    drawableFLAG = None
    xval = 10
    yval = 10
    borderval = 0
    antialiasFLAG = FALSE
    sizeval = 100
    sizetypeval = 1
    fontnameval = 'Arial Heavy'

    pdb.gimp_message('LOAD IMAGE')
    imageobj = pdb.file_jpeg_load(imagepath, imagepath)
    pdb.gimp_display_new(imageobj)
    pdb.gimp_message('CREATE TEXT LAYER')
    textlayerval = pdb.gimp_text_fontname(imageobj, drawableFLAG, xval, yval, text, borderval, antialiasFLAG, sizeval, sizetypeval, fontnameval)
    pdb.gimp_message('SET TEXT COLOR')
    pdb.gimp_text_layer_set_color(textlayerval, '#ff0000')
    time.sleep(1)
    pdb.gimp_message('DUPLICATE')
    new_image = pdb.gimp_image_duplicate(imageobj)
    pdb.gimp_message('MERGE')
    layer = pdb.gimp_image_merge_visible_layers(new_image, CLIP_TO_IMAGE)
    pdb.gimp_message('SAVE')

# THE CODE FAILS ON THE NEXT LINE
    pdb.gimp_file_save(1, new_img, layer, outputpath, 'AAA_TEST.png')

    pdb.gimp_context_pop()
    pdb.gimp_image_undo_group_end(image)
    pdb.gimp_displays_flush()
    #return

Print this item

  Cutting pieces, can't eliminate border
Posted by: gmitche - 06-21-2019, 03:56 PM - Forum: General questions - Replies (6)

I am trying to make an image of a puzzle with different colored pieces.  In the example attached, I've cut out 2 white and 2 black pieces and put into layers.  Showing those 4 layers, we see the puzzle pattern/outline.  I don't want that.  I have the puzzle template as an svg and can't get the paths so narrow that they won't show in the final output, but not so narrow (or nonexistent) that the fuzzy select will still work.  
I am a newbie so verbose help would be appreciated.
Thanks.



Attached Files
.xcf   BlkWhitePuzzleExample.xcf (Size: 363.01 KB / Downloads: 526)
Print this item

  SVG 300 dpi from Inkscape to Gimp
Posted by: ale6rbd - 06-20-2019, 09:44 AM - Forum: Other graphics software - Replies (1)

Hi everyone,

I often use the ellipse mode for the pencil tool in Inkscape and I need to export the path as an SVG at 300 dpi from Inkscape into Gimp. Is there any way to do this?

Also, do you a way of recreating the ellipse pencil in Gimp?

Thank you a lot!  Smile

Print this item

  Alignment tool layer lock 2.10.10
Posted by: FatAliB - 06-20-2019, 12:25 AM - Forum: General questions - Replies (3)

In GIMP 2.10.10 layer locking works fine with the move tool, ie all locked layers are moved, but has no apparent effect using the Alignment tool, where only the currently set layer is aligned.
Is this a 'feature' or a bug?

Print this item

  Selection to transparent - unexpected results
Posted by: SevenLime - 06-19-2019, 07:24 PM - Forum: General questions - Replies (2)

Hi guys,

I see this happen sometimes but never bothered to ask before now. Check out the two screenshots I took while editing an image of a phone. Notice the result after I clear a selection made with either fuzzy select or color select. 

Fuzzy select (2nd image):
1) Why is the content around the inside edge of the selection still partially visible?
2) Why is the content around the outside edge of the selection partially cleared? That area is outside the  selection so I imagine it shouldn't be changed. Maybe I have some fade setting enabled?
Confused Confused

Color select (3rd image):
1) Why is there a translucent trail creeping up the edge of the phone? That trail was not shown as part of the color selection (zoom in to see the selection ants). If I turn the threshold way down then try to select and delete, that trail does not form.
Huh  

Thanks a bunch from a new user. Happy to be here Blush



Attached Files Thumbnail(s)
           
Print this item

  [split] print tiff problem
Posted by: tez06 - 06-19-2019, 12:21 PM - Forum: General questions - Replies (2)

hi, i recently updated to gimp 2-10-12 and always exported my files in tif format then printed to my large format printer, however when i export my work in this new gimp when i go into the folder and try image preview the canvas is blank no images whatsoever and it print absolutely nothing, previous version worked like a charm, any ideas why this is?

Print this item

  Using the Crop tool to enlarge the canvas
Posted by: Ofnuts - 06-17-2019, 06:01 PM - Forum: Tutorials and tips - Replies (8)

10 years of Gimp usage, and never noticed the Allow growing setting in the Crop tool. When you set it, you can use the crop tool to make the canvas/layer bigger.

Print this item

  drag-drop image in layer turned to black and white [solved]
Posted by: gimpmel - 06-15-2019, 05:45 AM - Forum: General questions - Replies (3)

Hi,
I upgraded to GIMP 2.10. 12 yesterday and when I dropped an image into a new layer with white or transparent background, the image (drop buffer) turned to black and white. How can I prevent this from happening?

I'm using PCLOS KDE 5.

Print this item

  Preferences slow to open
Posted by: ipco - 06-13-2019, 02:55 PM - Forum: Windows - Replies (5)

I am a new GIMP user and just installed ver 2.10.10
GIMP opens very fast - 15 seconds but when I open Edit/Preferences it takes 2 minutes 32 seconds consistently. I've opened/closed this several times and it's always the same,2.32. It appears it may be searching its own folders for each time. Is this normal behaviour or do I need to configure something?

I noticed in Folders there are two locations for everything
C:\Users\MyName\AppData\Roaming\GIMP\2.10\icons
C:\Program Files\GIMP-2.10.10\gimp\share\gimp\2.0\icons

Is this normal?

I am using Windows 10 Professional (x64) 
4 core
8GB ram
NVIDIA GeForce GT 640

Thank you

Print this item