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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 4,917
» Latest member: subbareddy
» Forum threads: 7,684
» Forum posts: 41,799

Full Statistics

Latest Threads
GIMP 3.04 opens with wind...
Forum: Windows
Last Post: subbareddy
5 hours ago
» Replies: 7
» Views: 3,640
Isolate, select and copy/...
Forum: General questions
Last Post: rich2005
Yesterday, 04:39 PM
» Replies: 7
» Views: 356
"Plug-in crashed" on GIMP...
Forum: General questions
Last Post: skullamrotis
Yesterday, 03:32 PM
» Replies: 4
» Views: 372
AIMAGoR - Artificial IMAg...
Forum: Other graphics software
Last Post: vitforlinux
Yesterday, 12:09 PM
» Replies: 23
» Views: 9,790
RapidRAW
Forum: Other graphics software
Last Post: denzjos
11-03-2025, 12:51 PM
» Replies: 2
» Views: 197
Tutoriel installer Drea...
Forum: Tutorials and tips
Last Post: meric57
11-03-2025, 07:45 AM
» Replies: 0
» Views: 79
Nouveau Arrivant sur le f...
Forum: Watercooler
Last Post: meric57
11-03-2025, 06:45 AM
» Replies: 0
» Views: 79
Accessing GIMP’s internal...
Forum: General questions
Last Post: rich2005
11-02-2025, 12:35 PM
» Replies: 1
» Views: 173
Can't find path plug-in
Forum: General questions
Last Post: programmer_ceds
11-01-2025, 04:47 PM
» Replies: 7
» Views: 471
Gimp shows blank black sc...
Forum: Windows
Last Post: rich2005
11-01-2025, 09:01 AM
» Replies: 1
» Views: 177

 
  tile squares with random colours from a palette
Posted by: Espermaschine - 07-30-2018, 08:57 PM - Forum: Extending the GIMP - Replies (3)

Is there a filter or a script that lets me tile squares with different colours in a random fashion ?

Lets say i have a red, a black and a yellow 40x40px square and i want x rows and x columns.

Like this:
   

Print this item

  Layers and mipmaps (DDS files)
Posted by: KevKiev - 07-30-2018, 03:58 PM - Forum: General questions - No Replies

When opening DDS files into GIMP for editing, should I be loading the mipmaps?

I've never had a need to edit the mipmaps, but that's what I'm doing now. Since I often create a layer out of the same "main" texture, the result is that each of the layer and main texture have loads of (identical I guess) mipmaps.  If the answer to the above question is yes, when merging down should I also merge the layer's mipmaps or delete them first?

Something tells me that a better practice is to open DDS's without mipmaps and simply generate them on export, but I thought I'd double-check.

Thanks

Edit: strange how many basic tutorials don't address this, but I finally did stumble upon a couple of them that advised to not load mipmaps when loading an image into Gimp, but just generate them on export. I'll do that from now on, unless someone knows of a reason not to. (Again, I haven't had any need to touch the mipmaps during the edit process.)

Print this item

  Can the Color of Text Be Automatically Inverted Based on its Background?
Posted by: abajan - 07-30-2018, 03:13 PM - Forum: General questions - Replies (2)

Using GIMP, is there a (simple) way to have the color of text automatically invert whenever it's over a background of a similar color? For instance, I've seen print ads where black text on a white background becomes white wherever it's over a dark enough background that would make it difficult to read were its color not reversed, due to the lack of adequate contrast. In case I'm not explaining the issue clearly, this post pretty much illustrates the effect I want. But I don't need it for animation purposes, just static documents.

Thanks.

Print this item

  open -a Gimp has stopped working
Posted by: ryofurue - 07-30-2018, 12:05 PM - Forum: OSX - No Replies

Upon upgrading to Gimp 2.10 (through "brew cask install gimp"), the open command has stopped working on Gimp.

Before the upgrade,

$ open -a Gimp

used to open gimp. Now Gimp is installed as /Applications/GIMP-2.10.app , but none of

$ open -a GIMP-2.10
$ open -a Gimp-2.10
$ open -a GIMP
$ open -a Gimp
$ open -a gimp

opens Gimp.  I haven't seen the same problem on other applications.  Is this a problem of Gimp installation on Mac ?

I use macOS High Sierra.

Print this item

  Mac Keyboard Differences - delete key
Posted by: Paul E. Lehmann - 07-30-2018, 11:40 AM - Forum: General questions - Replies (3)

Mac Keyboard delete key not working as intended
Transitioning to a desktop Mac with a Mac keyboard.

In making a selection with the path tool and with all the prerequisites about alpha channel etc. , when I click the delete key after inverting, nothing happens.

With a non Mac keyboard, everything happens as it should. Is there a special key or combination of keys on a Mac keyboard to get the same results from the delete key as from a non Mac keyboard?

I was pulling my hair out until I put my old keyboard back into operation and everything worked. I think there is also an issue with the "Command Key" on Mac Keyboard doing the function of the "Control" key on a non Mac Keyboard with certain tools.

Perhaps a section of the difference between keyboard usage using Gimp with Mac and Windoze would be helpufl

Print this item

  Script-Fu: gimp-image-convert-precision
Posted by: Marcel - 07-30-2018, 10:46 AM - Forum: Scripting questions - Replies (4)

Hey guys,

is it possible to enable dithering when reducing the image's color precision with

Code:
gimp-image-convert-precision
in Script-Fu?

Image → Precision offers such an option.

Print this item

  How do I Apply a Layer Effect to Just a Selection?
Posted by: abajan - 07-30-2018, 12:51 AM - Forum: Extending the GIMP - Replies (3)

So, I've been viewing the video below as a guide on using the Bevel and Emboss Script Fu layer effect, but I want to apply it to just a selection on a layer instead of the entire layer. How can this be achieved?

Thanks in advance.





Okay, I was able to achieve this by cutting the selection from the layer, pasting it on a new transparent layer, and then applying the effect to that new layer. But it seems like there ought to be a simpler way. Isn't there?

Print this item

  Is there a better way to do this?
Posted by: KevKiev - 07-29-2018, 07:15 PM - Forum: General questions - No Replies

Edit: Nvm, I'm an idiot. I'll come back when I have a better question :0

Print this item

  Python scripts: handling PF_OPTION and PF_RADIO choices by name
Posted by: Ofnuts - 07-29-2018, 05:44 PM - Forum: Tutorials and tips - Replies (5)

Handling PF_OPTION in scripts is always a bit of a problem when there are many of them or long list of choices. Here is a technique that has several advantages:

  • No choice is ever referenced by its actual integer equivalent.
  • The list of choices can be modified at will (insertions, reorders) without having to hunt the code for changes
  • Choices and their labels cannot be "desynchronized" as would happen with parallel lists
  • Code remains short
All is needed is this small function in the script (it uses the namedtuple from the standard collections module which is in all Python runtimes):

Code:
from collections import namedtuple

def createOptions(name,pairs):
    # namedtuple('FooType',['OPTION1',...,'OPTIONn','labels','labelTuples']
    optsclass=namedtuple(name+'Type',[symbol for symbol,label in pairs]+['labels','labelTuples'])
    # FooType(0,..,n-1,['Option 1',...,'Option N'],[('Option 1',0),...,('Option N',n-1)])
    opts=optsclass(*(
                    range(len(pairs))
                    +[[label for symbol,label in pairs]]
                    +[[(label,i) for i,(symbol,label) in enumerate(pairs)]]
                    ))
    return opts

Then you define your options as a list of  (name,label) tuples, where name is how you refer to that option in the code, and
label is how it appears in the PF_OPTION or PF_RADIO widget:

Code:
[('NONE','None'),('LINKED','Linked layers'),('TEXT','Text layers')]

To create the object that will carry the options, you call the function above, giving it a name, and the list of tuples, and keep the result is a variable:

Code:
MergeOptions=createOptions('Merge',[('NONE','None'),('LINKED','Linked layers'),('TEXT','Text layers')])

The name as passed to the function is not too important, it just needs to be unique among your various set of options. What really counts is the name of the variable in which you keep the object.

In the resulting variable:
  • The name of each tuple in the list is now an attribute: MergeOptions.NONE, MergeOptions.TEXT, MergeOptions.LINKED
  • Thees attributes have the value of their index in the list: MergeOptions.NONE==0, MergeOptions.TEXT==1, MergeOptions.LINKED==2
  • A labels attribute contains the list of labels: MergeOptions.labels==['None','Linked layers','Text layers']
  • A labelTuples attribute contains the list of (labels,value) tuples: MergeOptions.labelsTuples==[('None',0),('Linked layers',1),('Text layers',2)]
Given this, you can define your PF_OPTION like this:

Code:
(PF_OPTION, 'mergeLayers', 'Merge layers',MergeOptions.TEXT,MergeOptions.labels)

or your PF_RADIO like this:

Code:
(PF_RADIO, 'mergeLayers', 'Merge layers',MergeOptions.TEXT,MergeOptions.labelTuples)

To test an option in the code you just use its name:

Code:
if merge==MergeOptions.TEXT:

or even:

Code:
if merge in [MergeOptions.TEXT,MergeOptions.LINKED]:

Happy coding.

Print this item

  Where to put Resynthesizer / heal-selection plugins for Windows
Posted by: KevKiev - 07-29-2018, 02:36 PM - Forum: Extending the GIMP - Replies (2)

Thanks for sharing, that heal selection tool looks super handy.  

Question: I have 2.10 on Windows 7.  Preferences shows 2 folders for plugins - the "AppData" one and the one in Program Files.  You mentioned installing in AppData etc. but could I instead install it in Program Files?  I'd prefer that location, just to keep it together with all the other plugins.  (My AppData etc. folder is empty.)  But perhaps there's a reason why the AppData is mentioned specifically?

Edit: no biggie, I installed into AppData and all's good.  And, actually, I'm now wondering if other plugins I might download could be installed into AppData even if their instructions advise to install into Program Files?  Again no biggie, but I'm thinking it might be a good way to keep track of which plugins were installed in addition to the the default GIMP ones.  (Although, for now anyways, I'm not sure how useful that keeping track would be.)

Print this item