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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 4,578
» Latest member: ДианаJak
» Forum threads: 7,453
» Forum posts: 40,735

Full Statistics

Latest Threads
Gimp 3.0.4 - Windows 10 -...
Forum: Gimp 2.99 & Gimp 3.0
Last Post: rich2005
46 minutes ago
» Replies: 1
» Views: 16
GIMP 3.04 opens with wind...
Forum: Windows
Last Post: rich2005
5 hours ago
» Replies: 2
» Views: 121
Macroglossum stellatarum
Forum: Watercooler
Last Post: denzjos
6 hours ago
» Replies: 2
» Views: 100
Missing script-fu "refres...
Forum: Gimp 2.99 & Gimp 3.0
Last Post: Frenchie
7 hours ago
» Replies: 11
» Views: 358
processes in Whitelist
Forum: OSX
Last Post: rich2005
Yesterday, 09:45 AM
» Replies: 5
» Views: 198
Digikam: photo management...
Forum: Other graphics software
Last Post: denzjos
Yesterday, 06:53 AM
» Replies: 7
» Views: 4,600
AIGoR - Artificial Image ...
Forum: Other graphics software
Last Post: rich2005
07-01-2025, 12:12 PM
» Replies: 10
» Views: 3,128
Can't see GIMP windows
Forum: Gimp 2.99 & Gimp 3.0
Last Post: Tankred
07-01-2025, 11:48 AM
» Replies: 3
» Views: 264
Windows save
Forum: General questions
Last Post: sallyanne
07-01-2025, 06:27 AM
» Replies: 3
» Views: 350
Trying to append part of ...
Forum: General questions
Last Post: Denarius
06-30-2025, 12:26 PM
» Replies: 5
» Views: 361

 
  Select and bucket fill with python fu
Posted by: bozjaws - 04-15-2021, 07:31 PM - Forum: Scripting questions - Replies (1)

I'm trying to modify a script with the two basic commands: 
1.Select a free selection with a series of points
2.Fill that selection with the foreground at 75% opacity

To do command 1 I use the line:
pdb.gimp_image_select_polygon(image,CHANNEL_OP_REPLACE,3,[width/2.0,height/2.0,x0,y0,x1,y1])

The array at the end is filled with variables I define elsewhere. I try to test this in the python console on a file I've called test.xcf to see how I can expect the syntax to react. The line looks like 

pdb.gimp_image_select_polygon('test.xcf',CHANNEL_OP_REPLACE,3,[640,480,700,600,500,600])

But I get this error :Traceback (most recent call last):
  File "<input>", line 1, in <module>
TypeError: wrong parameter type

What Can I do? I assume I'm calling the image wrong but I'm not sure what to call it
--------------------------------------------------------
For command 2 I'm using:
pdb.gimp_edit_bucket_fill(drawable,BUCKET_FILL_FG,LAYER_MODE_NORMAL_LEGACY,75,0,FALSE,0,0)

I figure I can run this line in the console or in code and it should have the same effect: as long as there's a selection on the page then it'll just fill with the foreground. But when I test the syntax I'm met with:
NameError: name 'drawable' is not defined

So what do I call the selection then? I figure this should be simple but I'm just not sure what words I should use.

Additionally: The modifications I'm making to my script now call numpy in. Will this be an issue if I already have numpy installed on my machine, or do I have to specifically install it onto gimp?

Print this item

  ofn-brush-strokes-on-path
Posted by: Ofnuts - 04-13-2021, 09:02 PM - Forum: Extending the GIMP - Replies (34)

Adding an animation feature (each brush stroke on its own layer). Ending up being a major rewrite. Still have to update the doc before releasing in the wild.

   

For the above:

  • Find a Brush with foot steps (brush hose, alternating each foot)
  • Create a circular path
  • Apply the script to generate 30 strokes on a transparent background
  • Duplicate the image, shift the layers by one (top layer to bottom of stack)
  • Do that two more times, to have 3 images that are 1/2/3 steps behind
  • Use ofn-interleave-layers to combine them with 75%, 50% and 25% opacity to the first one
  • Export as (slow) animation

Print this item

Lightbulb Report on creating / updating scripts
Posted by: Krikor - 04-13-2021, 02:46 PM - Forum: Gimp-Forum.net - Replies (1)

Hi Ofnuts,

I noticed the creation / update on April 4th of this year of the ofn-select-layer-box. Is this thanks to the user error in the post https://www.gimp-forum.net/Thread-How-ca...n-photohop? pid = 22967 # pid22967.

I myself am not sure if all of your scripts I have are up to date or not. I would have to check almost one by one as to whether they are up-to-date or not, but for convenience and not having problems I don't do it.

It seems to me that here on the forum there is no topic that keeps us informed of these creations / updates.

There may be other ways, as there is a 'Get Updates' link on the downloads page. But I suppose that requires subscribing via email to some kind of service.

What do you think about posting a topic on this forum with current records about your creations / updates?

Perhaps also useful to provide other script writers with a space where they can inform the updating of their scripts. All in a single post, facilitating consultation and monitoring.

If it weren't for the user's mistake in downloading the wrong script, it would take me a while to become aware of this new script - ofn-select-layer-boxDodgy

Thx.

Print this item

Question Can I "chroma key" white tones to black?
Posted by: ANANAN - 04-13-2021, 01:50 PM - Forum: General questions - Replies (1)

Hey!

I have a drawing with lots of white paper showing through, and I want to make the white black.
The magic wand doesn't work, because the whites are undetectable and all over.

Is there a way to scan for the whitest hues of color and remove/replace it?

Thank you so much!

Print this item

  CMYK ICC Color Profiles Download for Soft proofing
Posted by: Carl_observing - 04-13-2021, 06:02 AM - Forum: General questions - Replies (1)

Hi. Does anyone know where to download CMYK ICC Color profiles? There are two 2-year-old tutorials by Michael Davies on YouTube that describe how to download the Adobe ICC color profiles. Unfortunately, that link https://supportdownloads.adobe.com/produ...rm=Windows does not work anymore and without the color profiles, one cannot do the soft proofing mentioned in the tutorial. I am hesitant in providing the link to the tutorials as I am not sure if it is allowed here.

Print this item

  How can i add a prevalent layer to an animated gif like in photohop?
Posted by: Someone1 - 04-12-2021, 06:33 PM - Forum: General questions - Replies (3)

I am new to gimp so i am still getting familiar with the interface.

In photoshop, an animated gif worked like this, there is a timeline and the layers on the side:

[Image: UD3wvDL.gif]

If i wanted to add a prevalent layer that existed in ALL the animation, all i had to do was go and add a layer (in this case, for demonstration purposes a black rectangle) to the THE END, after the last layer of the animation. When animated that layer will apply to all the animation:

[Image: 0lDPao9.gif]

How can i do this with GIMP?

If i import an animated gif, add a layer at the end and then export to save the layer will only appear at the end of the gif animation, not in all the animation.

Print this item

  Having some issues with lowering brush hardness
Posted by: AlphaWolf464 - 04-12-2021, 05:53 PM - Forum: General questions - Replies (2)

So, i was messing with different gradients recently, and im wondering if that changed it, tho it might be something else.The attached picture is what happens when I lower the brush hardness to 30 and click. See how theres that part that i labeled in red where the hardness suddenly drops off? It didnt used to do that, and im wondering how to fix it so that its a more consistent fadeaway.



Attached Files Image(s)
   
Print this item

  Oldschool Shirt Designs / Threshold Question
Posted by: CrystalLogic - 04-11-2021, 10:40 PM - Forum: General questions - Replies (11)

Hi!

I am new to this forum and have a specific question. I tried to find the answer myself by experimenting but now came to the conclusion i need external help.

I am relatively new to GIMP (watched and worked through one or two dozen of tutorials, experimenting, some of this , some of that) and really enjoy it. What i would really like to do is trying to create shirt designs, namely pretty specific ones. I try to explain:

In the music genre where i feel home at most (Heavy metal and related) thre is a huge scene of shirt bootleggers, that make very old school looking designs. These usually have quite a reduced colour spectrum (4 to 8 colours maybe). To make clear what i am talking about here is an example:

https://burningleathermx.com/wp-content/...8932_n.jpg

https://burningleathermx.com/wp-content/...9462_n.jpg

The originals to these shirts are these Cover artworks:

https://www.hrrshop.de/bilder/produkte/g...-BLACK.jpg

https://images-na.ssl-images-amazon.com/...L1425_.jpg

So i hope you get the idea !

My question is : How would i do this? From a guy i know who is a passionate avid photoshop user and professional graphic designer, i know how he does it with photoshop. He basically first uses threshold on the picture an then somehow colours a layer with a specific colour , then duplicates the picture , sets the threshold higher / lower, colours the next and so on, until those all together make a design like those above.

So i tried this with GIMP but i cannot seem to get past the part of colouring the first layer. i used the threshold feature, coloured all the black parts , but from then on it doesn't work.  As far as i know Photoshop has somewhat of a function that you just put on a coloured layer over the picture, but i cannot find anything in GIMP. Maybe with a layer mask?

So : if anyone has any idea how i could achieve this it would be highly appreciated !

Thanks a lot in advance and please excuse if my English is a bit crooked, i am from Germany and it's not my mother tongue Big Grin 

Cheers
Hendrik

Edit: I played around a bit again and made a screenshot so it might be even more clear what i want to achieve. It gets a tiny bit into the direction i want but the problem is still the other colors aren't shining through



Attached Files Thumbnail(s)
   
Print this item

  JPEG sampling factors explained
Posted by: Ofnuts - 04-11-2021, 03:26 PM - Forum: Watercooler - No Replies

If you ever got confused about the JPEG sampling factors notations as shows in Gimp's JPEG export dialog, but also ImageMagick's identify, mediainfo, here is a page that explains it all:

https://zpl.fi/chroma-subsampling-and-jp...g-factors/

Print this item

  logo disappears when I use "darken only"
Posted by: banuhl - 04-11-2021, 10:46 AM - Forum: General questions - Replies (2)

Hey, I have the following problem (Gimp 2.10.22)

I create a T-Shirt mockup for my online store. In a guide I saw that you can use the "darken only" mode for your logo in order to make it look more realistic when the logo is placed on a part of the t-shirt that has some folds. However, when I use "darken only" my logo turns invisible. I have the impression it somehow makes the logo itself transparent so I guess I have a wrong setting somehow... Anyone has a clue how I could fix that? Thanks in advance Smile

Print this item