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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 4,345
» Latest member: Dannysb
» Forum threads: 6,657
» Forum posts: 36,283

Full Statistics

Latest Threads
creases
Forum: General questions
Last Post: novalore40
1 hour ago
» Replies: 10
» Views: 242
.
Forum: General questions
Last Post: ldd2
5 hours ago
» Replies: 0
» Views: 29
Question about selection ...
Forum: General questions
Last Post: PixLab
Yesterday, 11:02 AM
» Replies: 3
» Views: 143
How good are you at guess...
Forum: Watercooler
Last Post: Krikor
04-27-2024, 12:56 PM
» Replies: 15
» Views: 474
Color change
Forum: General questions
Last Post: rinaldop
04-26-2024, 04:07 PM
» Replies: 5
» Views: 261
Scaling an image to a fix...
Forum: General questions
Last Post: denzjos
04-26-2024, 03:25 PM
» Replies: 4
» Views: 237
AppImages and Help Files
Forum: Alternate Gimp packagings
Last Post: CtrlAltDel
04-26-2024, 10:37 AM
» Replies: 2
» Views: 156
How do I make this image ...
Forum: General questions
Last Post: Krikor
04-26-2024, 09:23 AM
» Replies: 4
» Views: 176
How do I remove the backg...
Forum: General questions
Last Post: PixLab
04-26-2024, 12:40 AM
» Replies: 4
» Views: 250
I Have A Custom Ubuntu 24...
Forum: Alternate Gimp packagings
Last Post: Tas_mania
04-25-2024, 11:00 PM
» Replies: 5
» Views: 666

 
  Keyboard entries into script
Posted by: david - 10-07-2021, 04:11 PM - Forum: Scripting questions - Replies (8)

As a learning exercise I have created a Python script which takes a plug-in template, allows changes from the keyboard, and then saves it as a new blank plug-in.
I can use PF_STRING to enter one item of data (although it is not a pretty sight!), but it would seem that I can only use a PF_STRING once in a program.

Is there an elegant way that I can enter multiple items into variables, such as Name, Description, etc. via the keyboard in response to screen prompts?

Print this item

  Chopping a path
Posted by: Ottia Tuota - 10-07-2021, 07:15 AM - Forum: Extending the GIMP - Replies (12)

I made two plugins to chop the strokes of a path to smaller pieces. One is old, one is new.

To get the plugins, go to

http://kmarkku.arkku.net/Path_chop_files...aster.html

and click the Download button. Unzip. Put the file chop_path.py in the user's plug-ins folder. Restart Gimp. In the Paths tab, right-click the path you want to chop. Follow the links

Tools > Chopping > ...

There you see two plugins:

  • Chop the path at its anchors
  • Chop the path by another path
I explain now both a little.

Chop the path at its anchors

This is the old one but now it is in a different place in Gimp's menu. Also the wording of the GUI and the default action are a little different. The plugin chops the strokes of the path at the anchors, producing 2-anchor strokes. The default differs from what it was before: now the default is to make one path, so that the effect is to chop the strokes of the path into small 2-anchor strokes. Optionally you can make all the 2-anchor strokes into separate paths.

Chop the path by another path

In this plugin we have two paths: the one to be chopped and another path. The action is that the strokes of the path are chopped into shorter strokes by cutting them at the crossing points with the other path. Optionally all the shorter strokes can be made to separate paths each.

Example 1

On the left the red path has 1 stroke with 4 anchors. That path we want to chop. There is another path (blue), and that is the chopping path.

   

In the middle picture the plugin has been applied: The red path is chopped by the blue path. You see there 3 new anchors at the crossing points; those 3 anchors are in fact double anchors and stroke ends. The red stroke has been cut into 4 shorter strokes, so the path consists now of 4 strokes. To show that they are indeed 4 separate strokes, I moved their ends a little apart, on the right.

Example 2

A spiral chopped to pieces. To begin with, the spiral (red) is one stroke. It is chopped by the fan of lines (another path, blue).

   

After chopping, the spiral consists of 48 strokes, on the right. In this picture the spiral is chopped into 2-anchor strokes, and I grabbed and moved 3 of them to show that they indeed are separate strokes.

In this example the new short strokes happen to have only 2 anchors each (the end points). But since the plugin preserves all original anchors, in general you often get strokes with more than 2 anchors. If needed, you can try to get rid of some anchors with the Simplify plugin.

The ordering of the strokes follows the original spiral. The plugin enables you also to make separate paths instead of one path with several strokes.

Example 3

You can also use the plugin to chop a path by itself. On the left we have a red path, one stroke with 3 anchors. In the middle picture the path is chopped by itself. This means that the stroke has been cut at the crossing points. On the right I moved the stroke ends a little so that you can see how the cuts are done. Now there are 5 strokes.

   

For those interested: To do this plugin I had to compute intersections of two Bezier curves. I implemented the "interval subdivision algorithm" in Section 7.6 of:

https://scholarsarchive.byu.edu/cgi/view...ext=facpub

And that was the easy part in the work.

If the plugins do not work as supposed, please report.

Print this item

  Filters question 2.8
Posted by: gazza - 10-06-2021, 04:13 AM - Forum: Older Gimp versions (2.8, 2.6....) - Replies (7)

Hi
I am trying to use some Tutorials that I saved way back and they want to use the Filters/Render/ Clouds/ Difference Clouds. I understand the Difference clouds filter has changed to a "Noise" filter now in 2.10. Does the filter in 2.8 not work at all now? I have the .scm file in my scripts folder, but it is all greyed out when I try to use it. I am sure I did use it recently and it worked. Maybe I am doing something incorrectly? I am trying to put some water with a reflection in front of some houses. The background file downloaded is in .png format, and it is only the "Clouds" issue that has me stumped.
Gazza


Sorry folks............ got it sorted. Welll sort of. The filter works, but having trouble with this particular project.
Thanks

Print this item

  Where did the size changer options go?
Posted by: skylandersarefun123 - 10-05-2021, 05:11 PM - Forum: General questions - Replies (1)

Randomly the options disappeared and i cant find out how to bring them back



Attached Files Image(s)
   
Print this item

  Batch Metadata updating with BIMP.
Posted by: YeboiXd - 10-05-2021, 05:09 PM - Forum: Scripting questions - Replies (4)

Hello. I am very new to scripting and plug-ins in general. I am trying to create a script that works with BIMP (Batch processing of GIMP) that gets the metadata from each image and updates selected fields while keeping the non-updated ones. I mainly want to update the Copyright of each of the images that are batch processed. I know I can use exiftool for this, but I am also using BIMP for more than just editing metadata and would like to only use BIMP for all these purposes. I know I need to use pdb.gimp_image_get_metadata(image) and pdb.gimp_image_set_metadata(image,data). But I just don't know how to code the script to do what I want it to do.

Thank you in advance!

Print this item

  GIMP 2.10.28 with MathMap - Windows
Posted by: paulfh - 10-05-2021, 11:33 AM - Forum: General questions - Replies (4)

Has anyone tried using MathMap with the latest 2.10.28 version of GIMP? I'm a bit wary of trying it as I couldn't get it to work with 2.10.24 and reverted back to 2.10.22.

Print this item

  Simplifying Photo to Create Painted Effect
Posted by: AxeMasterG - 10-05-2021, 11:30 AM - Forum: General questions - Replies (2)

Hi there folks,

I was wondering whether there's a way to take a photograph and simplify the colours in order to give it a "painted on" look. It's difficult to describe, but I have a photo of a cat that I would like to incorporate onto a flag in a way so that it looks similar to the California state flag (with the bear). Can anybody help? Cheers.

Print this item

  changing a line
Posted by: aka - 10-05-2021, 09:08 AM - Forum: General questions - Replies (2)

Hi,

Let say we have a layer with some lines, it can be pen or brush or something else ; that does no matter, I can take any of them for the following purpose : I would like to change the thickness of an already drown line through someting like options, preferences, etc.

Is it please possible ?

Best regards.

Print this item

Video Maybe he made a bunch of Gimp converts with these answers
Posted by: Ofnuts - 10-04-2021, 07:43 PM - Forum: Watercooler - No Replies



Print this item

  Installing Photoshop filters/plug-ins in GIMP
Posted by: Peregrinus - 10-03-2021, 02:10 AM - Forum: Extending the GIMP - Replies (5)

Greetings,

I'm running gimp 2.10.20 on a Windows 10 pro machine.

I recently tried to upgrade a set of filters/plug-ins that I have been using successfully for a while.

I followed the instructions to tell gimp where to find plug-ins and send a message to say that the new folder and being recognised and will be saved.

I closed the gimp started it again and recognised performed and displayed the plug-ins/filters.

When I tried to apply filter to an image and image it did not work..

I would be grateful for any ideas on how to fix this

Regards

C

Print this item