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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 4,346
» Latest member: RonBee
» Forum threads: 6,657
» Forum posts: 36,284

Full Statistics

Latest Threads
GIMP Won't Launch
Forum: General questions
Last Post: RonBee
1 hour ago
» Replies: 12
» Views: 4,143
creases
Forum: General questions
Last Post: novalore40
4 hours ago
» Replies: 10
» Views: 255
.
Forum: General questions
Last Post: ldd2
7 hours ago
» Replies: 0
» Views: 31
Question about selection ...
Forum: General questions
Last Post: PixLab
Yesterday, 11:02 AM
» Replies: 3
» Views: 144
How good are you at guess...
Forum: Watercooler
Last Post: Krikor
04-27-2024, 12:56 PM
» Replies: 15
» Views: 477
Color change
Forum: General questions
Last Post: rinaldop
04-26-2024, 04:07 PM
» Replies: 5
» Views: 262
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: 158
How do I make this image ...
Forum: General questions
Last Post: Krikor
04-26-2024, 09:23 AM
» Replies: 4
» Views: 178
How do I remove the backg...
Forum: General questions
Last Post: PixLab
04-26-2024, 12:40 AM
» Replies: 4
» Views: 250

 
  png Borders
Posted by: PProfessor - 12-07-2021, 10:44 PM - Forum: General questions - Replies (2)

Hi.  I'm brand new to GIMP and am pretty deep into a project.  I just realized that I've got a problem that occured about 40(!) exports ago (I'm saving each step individually) and I really don't want to have to go back to where it first happened.  I'm operating with an image saved as .png, and realized that at some point I moved the original layer when I meant to move a new one.  It was exported this way, and now has the grey checkered background on the left and top sides.  If I move it around the whole image seems to still be there, but I can't get it recentered.  I've tried the alignment tool, but it doesn't seem to do anything.  Here's a picture (not the one I'm working with since it's private at the moment), showing my problem in case I'm not describing it correctly.  Does anyone know what to do?


uh...it doesn't have the background. Does that mean my original image won't when I post it?



Attached Files Image(s)
   
Print this item

  Happy (belated) 5th birthday, Gimp-Forum.net!
Posted by: Ofnuts - 12-07-2021, 07:03 AM - Forum: Gimp-Forum.net - Replies (2)

Suddenly figured out that we are past 5 years of existence...

Print this item

  Export items individually
Posted by: meetdilip - 12-07-2021, 02:23 AM - Forum: General questions - Replies (5)

I have a file with around 30 emojis with space all around them. All other areas are transparent. Is it possible to export them as individual emojis ? They are currently in a single layer now. Thanks.

Print this item

  Invert Colors Behind Layer
Posted by: CubeGamer647 - 12-06-2021, 11:17 PM - Forum: General questions - Replies (3)

I was wondering if there was a way to make it so that a layer is completely transparent, and every pixel behind the layer is inverted, no matter where it is dragged. Kinda like they did in sonic mania, if anyone's played that. I want to be able to drag the mask around and take the effect with it. Can someone help out?



Attached Files Thumbnail(s)
   
Print this item

  Bulk convert
Posted by: Joseph_N - 12-06-2021, 06:43 PM - Forum: General questions - Replies (7)

GIMP can convert formats, e.g., from HEIC to JPEG, and it can perform bulk operations from the command line using the -b switch, but I have found no listing of all possible CLI commands or of the specific command or syntax to convert the file format. How would I go about converting a directory's set of HEIC files to JPEG files from the CLI?

Print this item

  Problem with correct colours in python script
Posted by: david - 12-06-2021, 04:16 PM - Forum: Scripting questions - Replies (12)

I have created a small script which fills a transparent layer with a colour. If I carry out the procedure manually I get the correct colour, but when I do it in Python the colour is incorrect. The example detailed below the colour is D37518 Hex - 211, 117, 24 Decimal.


The relevant piece of the code is:

   Tone = pdb.gimp_layer_new(image, width, height, type, "Tone", opacity, mode)            #new empty layer
    image.add_layer(Tone, 0)
    
    if colour == 0:
    
        sepia = gimpcolor.RGB(211,66,20)
        pdb.gimp_context_set_foreground(sepia)

    pdb.gimp_drawable_edit_fill(Tone, FILL_FOREGROUND)

If I run the code then check the inserted colour with the eyedropper I get the result in the screenshot.

No doubt something silly I am doing!



Attached Files Image(s)
   
Print this item

  How do I customize the toolbox?
Posted by: Marscaleb - 12-06-2021, 03:25 AM - Forum: General questions - Replies (2)

How do I customize the toolbox in GIMP these days?  I recall doing this in older versions but can't find the options I need now.

I want to change what tools appear in the toolbox.
More to the point I want to disable this counter-productive layout where the tools have other tools hidden inside them.  I just want to put the tools I use frequently in the toolbox so I can get them with a single click.
But as I said, I can't find the option to customize it in any place I'm looking in.

Print this item

  intelligent fill
Posted by: bbxrider - 12-06-2021, 02:08 AM - Forum: General questions - Replies (1)

see attached, the curved text along a path has voids,
there seems to be no way to stop those voids 
I would like to fill the voids with an intelligent fill,
where the tool would build an outline around the text
and fill in the voids while staying inside the outline, so all
the edges would be smooth along the text contour lines.

I've tried just painting with a small brush, etc., but there's
always jagged strays. the resynthesizer plugin tool looks like a
possibility or some version of a heal tool



Attached Files Thumbnail(s)
   
Print this item

  remove print pattern
Posted by: Tawe19 - 12-05-2021, 05:25 PM - Forum: General questions - Replies (8)

this is a scan from an old photo.
   
the original photo had this pattern of dots throughout, i'm guessing that this was a 'feature' at the time.

does anybody know how I might reduce or eliminate the effect ?

many thanks

Tawe

Print this item

  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