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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 4,588
» Latest member: Shraunjkn
» Forum threads: 7,461
» Forum posts: 40,763

Full Statistics

Latest Threads
GIMP 3.04 opens with wind...
Forum: Windows
Last Post: SteveH
8 hours ago
» Replies: 5
» Views: 252
.SCM and .PY files are no...
Forum: Gimp-Forum.net
Last Post: Ofnuts
11 hours ago
» Replies: 0
» Views: 56
Export all opened images ...
Forum: Extending the GIMP
Last Post: Ofnuts
11 hours ago
» Replies: 9
» Views: 9,277
v3.04 Script Error sg-sav...
Forum: Extending the GIMP
Last Post: Ofnuts
11 hours ago
» Replies: 1
» Views: 66
Bug: gimp-drawable-get-pi...
Forum: Scripting questions
Last Post: programmer_ceds
Yesterday, 03:55 PM
» Replies: 8
» Views: 244
'Transparent' area is bro...
Forum: General questions
Last Post: Ofnuts
Yesterday, 03:41 PM
» Replies: 1
» Views: 83
blank screen
Forum: OSX
Last Post: wilsonpig
Yesterday, 08:58 AM
» Replies: 4
» Views: 166
Cannot Install BIMP to GI...
Forum: Extending the GIMP
Last Post: Ofnuts
07-03-2025, 07:52 PM
» Replies: 1
» Views: 109
Missing fonts when export...
Forum: Gimp 2.99 & Gimp 3.0
Last Post: chblondel
07-03-2025, 06:11 PM
» Replies: 9
» Views: 513
Gimp 3.0.4 - Windows 10 -...
Forum: Gimp 2.99 & Gimp 3.0
Last Post: rich2005
07-03-2025, 03:02 PM
» Replies: 1
» Views: 125

 
  Replicating a path
Posted by: Ottia Tuota - 12-05-2021, 09:32 AM - Forum: Extending the GIMP - Replies (59)

Here is an experimental plugin. It is still at a preliminary stage and produces sometimes bad results. But I decided to publish it now since I think it may be useful as it is. And I am interested to hear any suggestions.

The plugin takes a path and replicates it along a circle:

   

So far the plugin works well for straight-edge paths (with some limitations) but you can try it with curved paths too.

With the plugin you can easily make the circular figures (but now as paths) in the following old thread:

https://www.gimp-forum.net/Thread-How-to...le-meander?

You can download the plugin from

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

Unzip the .zip file and place the one file it contains (replicate_path_along_circle.py) in your user's plug-ins folder. Then (re)start Gimp. Make a new image, and there a Pattern path like above. In Gimp's menu, go to the Paths dock, right-click the pattern path, and follow the links

Tools > Replicate > Replicate path along circle

and click. That opens the GUI of the plugin. I explain now the inputs.

Paths

In addition to the "Pattern path" (the path to be replicated) the plugin asks for a "Base path". It is a path with a single stroke. The stroke must be open so that it has two ends. Those end points are used as reference points: they are mapped precisely onto the circle. Example:

   

The Pattern is the blue arrow. Below it the red 2-anchor line is the "Base". You can imagine that the Base and the Pattern are transformed together: the end points of the Base are mapped onto the circle and the Pattern follows along. The result, using default values, is on the right. (The transformed Base is not shown here but the plugin does allow it to be drawn too. The same goes for the circle.)

Replication

To control the replication process there is a list of parameters:

  • Circle center x
  • Circle center y
  • Circle radius
  • Sector start
  • Sector angle
  • Number of copies
  • Radial scaling
The first three determine the circle and the next two its sector. In the above pictures only the whole circle was used, but you can also restrict the replication to the sector. For instance, with Sector start = 0 and Sector angle = 90 you can get:

   

The meaning of "Number of copies" and "Radial scaling" should be obvious. The latter does not change the circle but it scales the transformed pattern radially.

Distortion method

The plugin distorts the pattern to accommodate to the circular arc. There are three choices for how the distortion is done. The most natural is the default "polar coordinates" and probably that is all you will need. You can try the "exponential" method. It has the advantage to be conformal when radial scaling is 1, and that property may be useful sometimes (and for a mathematician this is the most natural choice!). The third choice is "no distortion" which causes the pattern to be copied as such (if radial scaling is 1).

If you use distortion you are safest when you apply the plugin only to straight-edge paths. Curved paths may cause unpleasant surprises; see below. If you choose "no distortion", however, curved paths should cause no problems.

Other drawings

With the last two inputs
  • Apply to the base path too?
  • Draw the circle?
you can make the plugin (1) to transform and draw the Base path too; (2) to draw the target circle.

Above I talked about the Base path as if it were only a 2-anchor path and nothing else. But all that is required of it is that it has a single stroke and that the stroke has two ends. Those end points are used as reference points. But between the end points the stroke may be anything, and sometimes you can use it as a part of the drawing; for that reason there is the option to draw the transformed Base. Or maybe you just want to see where the reference points are mapped to.

Known limitations

The current plugin may give bad results in distortions at least if:
  • The path has strongly bending or very long arcs, or inflection points. The remedy is to add anchors at strategic points.
  • The path is much wider than the base. Sometimes this is disastrous but not always - see the last picture below.
  • The ratio (Sector angle)/(Number of copies) is large. The plugin allows 120 degrees at most, and occasionally even that is a little too much.
I hope to make improvements in some later version.

Joining strokes

Look at the first picture. The resulting path consists of 12 sectors, and each sector is made of 4 short strokes, three open and one closed. But clearly the open short strokes could be joined to longer strokes, going round the whole figure. The plugin does not do this. But if you want to do the joinings, my plugin in

https://www.gimp-forum.net/Thread-Joinin...-of-a-path

seems to work well with its default values. And so does Ofnuts' plugin Edit > Join strokes contained in ofn-path-edits. In the first picture I created the pattern path by means of a grid and "snap to grid". That way the strokes were easily joined in the result.

Finally, a little playing. The Base is the red line in the middle, precisely half of the width of the grid:

   

Print this item

  only transparency on extended canvas
Posted by: Gimpr - 12-04-2021, 10:22 PM - Forum: General questions - Replies (3)

hi guys,
I'm adding a canvas extension to the bottom of  a group of images. I want the extension to be black so I can add white text to the extended canvas. I set my background color to black, extend the bottom of the canvas after adjusting the offset (resize layers set to NONE). I've done this many times before and the extended canvas strip is black, but today I have only been able to fill with transparency, no other Fill Canvas option works.
I'm running 2.10.4 on Windows 10 (if that matters) and have made no changes to my Gimp installation since the last time I used this "title bar" operation on other images... any suggestions?
Thanks in advance!

Print this item

  ofn-export-layers-combinations
Posted by: Ofnuts - 12-04-2021, 02:36 PM - Forum: Extending the GIMP - Replies (1)

A quickie to generate all possible combinations of designated layers:

For instance with a layer structure like this:

   

It creates this:

   

Available at the usual place.

Please report any mishaps. Suggestions from improvements welcome.

Print this item

  Making tiny images for a RC transmitter.
Posted by: Sweetfrost - 12-03-2021, 07:43 PM - Forum: General questions - Replies (2)

Hi there.

First of all - i am totally new to GIMP so any help would be greatly appreciated and i need it bent i neon ... like really understandable for a GIMP-beginner. I use GIMP version 2.10.28 on Windows 11.

Here is a description of what i need to do. I have a transmitter with a color display and i can put an image of the planes i'm using on it. The image has to be 192 x 108 pixels. I have attached a screenshot of the display of the transmitter so you can see what i am talking about.

   
   


My problem is that i can't figure out how to take the image of my plane/helicopter and make it fit the 192 x 108 pixels without too much of the rest of the image - i need the plane to occupy as much of the box of 192 x 108 pixels a possible without too much of everything else around the plane.

I have used other software where i made a mask (192 x 108 pixels) and then just resized the image (keeping the aspect ratio) until the plane fitted in the mask and then use the option "cut to mask" so only the little rectangle with the plane was left and i saved it as PNG. Since i can't afford to buy the software i found GIMP and hope i can learn to do similar things with my pictures. 

I hope someone in here could find the time to explain this to me - and down on a level that i can understand.    Big Grin

Best regards

Print this item

  G'mic problems?
Posted by: rickk - 12-03-2021, 05:54 PM - Forum: Other graphics software - Replies (9)

I've read in several other threads people make casual reference to experiencing problems with Gmic, and as someone who just started using it, I'm curious what "well known" problems people are experiencing? (so that if I notice the same problem, I won't suspect the cause is due to a problem specific to my installation).

One thing I've had  issues with is that about  every third or fourth time I use it, closing Gmic will freeze Gimp up tight, none of the menu items is accessible, and the only path forward is to force Gimp to end, without opportunity to save the work. Highly frustrating.
This is even after having the notorious "internet" box unchecked. And happens on machines where Gmic is the only  addition to Gimp, as well as machines that have beaucoup add ons.

Interestingly enough, I do not experience this problem using Gmic inside Krita, so I'm not at a hair pulling standstill, I'm just trying to understand what's going on between Gimp and Gimc.

Is this in any way similar to the problems others are experiencing?

One other oddity that I noticed last night.  using the "gradient from line" function in Gmic under Krita... when I told Gmic to save the resulting .ggr file, the end result WAS NOT saved in  /home/yourname/.local/share/krita/gradients/ as one might suspect to be the default location.  The file was in fact saved to  /home/yourname/.config/GIMP/2.10/gradients/

And I just found this unusual for the default "as installed" original configuration working inside Krita.

Print this item

  loops ; switch on/off masks ; export png
Posted by: aka - 12-03-2021, 04:17 PM - Forum: Scripting questions - Replies (10)

Hi,

Can someone please help me for my first gimp script ?

I have a gimp file with these layers : a, b1, b2, c, d1, d2 and e.

I would like to do a script which exports several images from this gimp file. I need this script does a selection of the layers for each export, I wish in fact this :

image1.png : only with layers a, b1, c, d1 and e. (layers b2 and d2 are hidden)
image2.png : only with layers a, b1, c, d2 and e. (layers b2 and d1 are hidden)
image3.png : only with layers a, b2, c, d1 and e. (layers b1 and d2 are hidden)
image4.png : only with layers a, b2, c, d2 and e. (layers b1 and d1 are hidden)


So can someone explain me :

1. How to do loops,
2. How to switch on/off layers,
3. How to export ?

Thanks  Smile

Print this item

  How to create a blank (fully transparent) dds file
Posted by: cmaesing - 12-03-2021, 09:26 AM - Forum: General questions - Replies (3)

Am currently playing a modded version of Skyrim Special Edition (SSE; not the latest Anniversary Edition) on my pc, and have come across an issue I just cannot get my head around


1.) A butterfly spawns on me all the time, and just won't go away; even player.setrace or player.sexchange will only temporarily fix it. Sometimes it's back after a few seconds, sometimes after a few minutes. It's completely at random - and it's driving me crazy!

2.) I have tried multiple forums and lots of different ideas as to how to get rid of it - but eventually it will always spawn back.

3.) That said, I have identified the texture that's used (it's always the same one) for this butterfly. So my idea is to either ...

  • take this texture dds file, and render it empty / blank / transparent, or


  • create a new texture dds file that only is transparent (and nothing else), and name it per the dds texture file as currently being in use.

Never having used GIMP before (maybe once or twice to resave a certain file into another format, but that's it), I did play around in v2.10. Sadly I haven't been able to rectify this. While I can change the texture file, it's the transparency that somehow doesn't get carried over. After removing the background (where the actual picture obviously sits) and exporting the file, the large icon of the file always looks black - which the butterfly then also does in SSE.

Would anyone be able to kindly give me some guidance as to how I can create a merely transparent dds file that will be recognized as transparent ingame? That way the butterfly would technically still be there - I just wouldn't see it anymore.

Thanks for any hint!

Print this item

  Gimp Fails to launch
Posted by: xPotential - 12-02-2021, 11:22 PM - Forum: Windows - Replies (11)

gimp briefly appears in task mon but no splash, no nothing, then its gone.

gimp console produces the following:

../babl/babl-internal.h:214 babl_log()

        failed to find trc '2.2'

help

Print this item

  [split] How to change icon theme 2.10
Posted by: flanker - 12-02-2021, 03:26 PM - Forum: General questions - Replies (4)

Hello.

I am working on creating own icon theme. New icons will be for toolbox only, every other icon remain original.
I new icons will be based on legacy theme. So I used existing *.png files of legacy theme.
Legacy icons for toolbox are located in folder ..\share\gimp\2.0\icons\Legacy\16x16\apps
I found there every used toolbox icon.
Except one - it is icon for 3D transform tool.

Any idea where can I find it?
Thanks.


it's in /usr/share/gimp/2.0/icons/Color/24x24/apps ,it's a svg
(12-02-2021, 04:29 PM)PixLab Wrote: it's in /usr/share/gimp/2.0/icons/Color/24x24/apps ,it's a svg

Thanks for help.

So whole legacy icons are png, except this one, which is even in other folder.
That's silly ...



Attached Files Image(s)
   
Print this item

  How can I assign a specific length to an image?
Posted by: sofasurfer - 12-02-2021, 12:40 AM - Forum: General questions - Replies (2)

I load an image of a truck into Gimp. Gimp's 'scale image' setting shows that the image (the entire image, border to border, not just the  actual truck image) is 297 pixels wide or 2.5 inches wide.

In real life this truck is 227.7 inches long. I want to use the Gimp 'measure' tool to measure the truck in the image and I want it to show that the truck is 227.7 inches long. If I zoom in or out of the image I still want to be able to measure the truck at 227.7 inches.

My reason is that I want to design an accessory that is a given length in real life and measure it in the image as being that length and then merge the image of the accessory with the image of the truck and have it fit properly. I want a consistently 227.7 inch long truck.

I did crop the truck image bumper to bumper and then used the 'scale image' tool to resize the truck to 227.7 inches. I then merged it onto a larger canvas. Now the truck measures 2.something inches again.

What is the proper procedure I should use to accomplish this task. I'm pretty new at Gimp so I am guessing this is my problem.

Print this item