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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 4,577
» Latest member: RaymondBut
» Forum threads: 7,452
» Forum posts: 40,729

Full Statistics

Latest Threads
Macroglossum stellatarum
Forum: Watercooler
Last Post: Tas_mania
33 minutes ago
» Replies: 1
» Views: 42
Missing script-fu "refres...
Forum: Gimp 2.99 & Gimp 3.0
Last Post: rich2005
3 hours ago
» Replies: 10
» Views: 288
processes in Whitelist
Forum: OSX
Last Post: rich2005
Today, 09:45 AM
» Replies: 5
» Views: 170
Digikam: photo management...
Forum: Other graphics software
Last Post: denzjos
Today, 06:53 AM
» Replies: 7
» Views: 4,586
GIMP 3.04 opens with wind...
Forum: Windows
Last Post: SteveH
Yesterday, 11:47 PM
» Replies: 0
» Views: 62
AIGoR - Artificial Image ...
Forum: Other graphics software
Last Post: rich2005
Yesterday, 12:12 PM
» Replies: 10
» Views: 3,119
Can't see GIMP windows
Forum: Gimp 2.99 & Gimp 3.0
Last Post: Tankred
Yesterday, 11:48 AM
» Replies: 3
» Views: 257
Windows save
Forum: General questions
Last Post: sallyanne
Yesterday, 06:27 AM
» Replies: 3
» Views: 338
Trying to append part of ...
Forum: General questions
Last Post: Denarius
06-30-2025, 12:26 PM
» Replies: 5
» Views: 329
clone tool
Forum: General questions
Last Post: sallyanne
06-30-2025, 12:38 AM
» Replies: 6
» Views: 410

 
  How to propagate changes from source layer to its duplicates?
Posted by: challenger - 07-14-2023, 08:24 AM - Forum: General questions - Replies (4)

Lets say I'm designing a board game cards. I have a kind of master layer group, where I have designed and hid all layer groups, needed for certain card types.
We have coins and workers. There may be certain amount of coins (so I have a layer for each occurrence , like 1, 2, 3 & 4 coins). I'm going to create a number of duplicates of that master layer as a separate cards and align them in a grid. Then I'll just turn visibility on for the required coin layer. It will create a coin cards set (1coin, 1 coin, 2 coins, 3 coins, 4 coins on the same image to be printed).

And here I want to make some changes to coin layer, lets say change margin between coins, resize or even replace the coin image (lets assume that image itself is a child layer). And I want the to be made to master layer and propagated to all duplicates, created from that layer.

Is there any way to do this in gimp?


Maybe someone knows a better tool supporting such functionality. I'll appreciate any help.

Print this item

  The boiler room
Posted by: denzjos - 07-13-2023, 07:05 PM - Forum: Watercooler - Replies (2)

After a MS windows 10 update, my MS Office XP no longer works (on startup, the acces the screen appears and then disappears) Angry . I often make backups, after installing my last backup, I could start Office XP again and could export the data. I used the access database since 1996 and I want to import the data in LibreOffice Base. As I started with gimp a few years ago and first did'n like it (now, after learning it, I do like it). Using LibreOffice, I found it very basic and did'n like it : it's like I was in the boiler room. After reading several sollutions and tested them out, I could import my data in Libreoffice Base (after export access--->  dbase4). A few lines were not imported, but I inserted them by hand. Now I had to learn how to use tabels / query's / forms and rapports. Hard to do when be microsoft brainwashed, but I persevered. After a few solutions that ended in the dust bin, I felt my brain learned to think the Libreoffice way. Now, my database is working fine and MS Office landed in the dust bin (because it died again today) . OO software isn't bad at all (and it's free). That's why I post this in the watercooler, again on normal temparture. Big Grin

Print this item

  Divide straight line with "notches" (e.g. graph scale)
Posted by: TobyEggitt - 07-13-2023, 05:17 PM - Forum: General questions - Replies (14)

Hi all, I'm looking to put a "scale" on an image. It's actually a map that I'm cropping a region from. So, I need to be able to draw a straight line on the full size original, between two known points, and divide that into a specific number of subdivisions (e.g. miles, but more likely minutes of lat/long in my situation).

Ideally, the result would put "tick marks", or "notches" along the line, in the manner of a graph scale, but as long as the points are identifiable I could do that by hand. 

After all that, I would then crop the image, leaving some part of the line in the crop to act as the new scale.

I found this thread:
https://www.gimp-forum.net/Thread-ofn-br...es-on-path

which I think I could make work, but I suspect it's unnecessarily complex, since the target of "equal division" is an arbitrary path. I'm hoping there's a better/simpler/faster approach for the straight line situation?

Any pointers?

TIA,
Toby

Print this item

  Changing the default screen color
Posted by: pinnerite - 07-13-2023, 03:34 PM - Forum: General questions - Replies (3)

I am using Gimp 2.10.30 on Linux Mint 21,2 beta.
I don't like this version's white on black window.
Can I change it?

Print this item

  change size and resolution
Posted by: Hall - 07-13-2023, 12:31 PM - Forum: General questions - Replies (1)

Hello,

I'm using Gimp for the first time.
I would like to change the size and the resolution of my image.
So I open the image, I select 'image scale and size' . there I can choose the width, the height and the resolution(72ppi), which is for me the quality of the jpeg, then I clic on 'scalling' . 
After that I clic on 'export under' then 'export' and there a new window propose me to choice a quality between 0 to 100.

What is the différence between the resolution (72ppi for the web) and the quality 0 to 100 ?

I feel like I've been asked the same thing twice.

Print this item

  The Hand Of Fate Glass Vignette
Posted by: Tas_mania - 07-13-2023, 07:24 AM - Forum: Gallery - Replies (6)

[Image: Hand-Of-Fate-Glass-Vignette.webp]

Just seeing if I can insert a webp image here. Looks like I can Smile Gimp-Forum changes the speed a bit. Original is here.

Print this item

  Pressure sensitivity is not working
Posted by: Marscaleb - 07-13-2023, 03:31 AM - Forum: General questions - Replies (1)

I'm using my wacom bamboo tablet, and I can't get the paintbrush tool to respond to the pen's pressure.

I recall on my old computer, I had to actually open GIMP with the pen or else it wouldn't recognize the pen apart from the mouse, for some reason.  But I tried that here and it didn't make a difference.

I tested with microsoft whiteboard and it is responding to the pressure in my pen, but GIMP is not.

Any thoughts here?

Print this item

  translating every text layer
Posted by: jacques_duflos - 07-12-2023, 11:42 PM - Forum: Scripting questions - Replies (8)

Hi there,
I made this script that translates every text layer of the layer group selected, or the text layer selected.
As you can see  at lines 50 to 54, I had to skip the text layers witches text are None because it generated an error and interrupted the script. But I don't understand why some of my text layers return the None value when I ask them their text. All those text layers have a text. Any clue anyone ?

Code:
               # lines 50 to 54
                # Vérifier si le texte n'est pas de type NoneType
                if text is not None:
                    # Traduire le texte en utilisant la bibliothèque translate
                    translated_text = translator.translate(text)
                else:
                    translated_text = "ERREUR TEXTE NON TRADUIT\n{}".format(text)


Another question I have is about the libraries I had to include. I added them directly next to the .py that needed them and it works. But I guess it is not the elegant way of doing so. If I do another script needing the same libraries, I would have to include them once more. Is there a way to include libraries in the gimp specific python installation ?
the dependencies are as followed :
traducion.py (my script) needs translate
translate.py needs providers
providers/mymemory_translated.py needs requests

the main script is :

Code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from gimpfu import *
from translate import Translator

def translate_text_layers(image, drawable):
    image.undo_group_start()
    
    translator = Translator(to_lang="fr", from_lang="es")
    print("------------start--------------")
    pdb.gimp_message_set_handler(MESSAGE_BOX)
    
    # Recuperation du groupe de calques selectionne
    group = pdb.gimp_image_get_active_layer(image)
    
    # Récupération du groupe de calques "text-fr" s'il existe
    group_text = None
    for layer in image.layers:
        if pdb.gimp_item_is_group(layer) and pdb.gimp_item_get_name(layer) == "text-fr":
            group_text = layer
            break

    if group_text is None:
        # Créer un groupe de calques nommé "text-fr" s'il n'existe pas
        group_text = pdb.gimp_layer_group_new(image)
        pdb.gimp_item_set_name(group_text, "text-fr")
        pdb.gimp_image_insert_layer(image, group_text, None, 0)

    if pdb.gimp_item_is_group(group):
        print("----------layer is group-------------")
        # Creer un groupe de calques nommé "text-fr"
        group_text = pdb.gimp_layer_group_new(image)
        pdb.gimp_item_set_name(group_text, "text-fr")
        pdb.gimp_image_insert_layer(image, group_text, None, 0)
        # Parcours de tous les calques du groupe
        for layer in group.layers:
            # Vérification si le calque est de type texte
            if pdb.gimp_item_is_text_layer(layer):
                # Dupliquer le calque
                duplicate = pdb.gimp_layer_copy(layer, True)
                
                # Ajouter le calque duplique au groupe "text-fr"
                pdb.gimp_image_insert_layer(image, duplicate, group_text, 0)
                
                # Récupérer le contenu texte du calque dupliqué
                text = pdb.gimp_text_layer_get_text(duplicate)
                
                # Vérifier si le texte n'est pas de type NoneType
                if text is not None:
                    # Traduire le texte en utilisant la bibliothèque translate
                    translated_text = translator.translate(text)
                else:
                    translated_text = "ERREUR TEXTE NON TRADUIT\n{}".format(text)

                
                # Mettre à jour le texte du calque dupliqué avec la traduction
                pdb.gimp_text_layer_set_text(duplicate, translated_text)

        # Actualisation de l'affichage de l'image
        pdb.gimp_displays_flush()
    elif pdb.gimp_item_is_text_layer(group):
        print("----------layer is text-------------")
        # Si le calque sélectionné est un calque de texte
        # Dupliquer le calque
        duplicate = pdb.gimp_layer_copy(group, True)
        
        # Ajouter le calque duplique au groupe "text-fr"
        pdb.gimp_image_insert_layer(image, duplicate, group_text, 0)
        
        # Récupérer le contenu texte du calque dupliqué
        text = pdb.gimp_text_layer_get_text(duplicate)
        
        # Traduire le texte en utilisant la bibliothèque translate
        translated_text = translator.translate(text)
        
        # Mettre à jour le texte du calque dupliqué avec la traduction
        pdb.gimp_text_layer_set_text(duplicate, translated_text)
    else:
        print("--------Veuillez sélectionner un groupe de calques ou un calque de texte.----")
        gimp.message("Veuillez sélectionner un groupe de calques ou un calque de texte.")
    
    pdb.gimp_message("fini")
    # restore stuff
    image.undo_group_end()

register(
    "python-fu-translate-text-layers",
    "Translate text layers from French to English",
    "Translate text layers from French to English",
    "Your Name",
    "Your Name",
    "2023",
    "<Image>/Filters/Language/Translate Text Layers",
    "*",
    [],
    [],
    translate_text_layers)

main()



Attached Files
.zip   traduction.zip (Size: 470.93 KB / Downloads: 1001)
Print this item

  undefined reference to `ILBM_read'
Posted by: jiapei100 - 07-12-2023, 09:39 PM - Forum: Gimp 2.99 & Gimp 3.0 - Replies (3)

Hi, all:

I'm trying to build gimp-2.99.16 under Ubuntu 22.04,  but obtained the following ERROR messages:

Code:
[2192/2522] cc  -o plug-ins/common/file-iff plug-ins/common/file-iff.p/file-iff.c.o -Wl,--as-needed -Wl,--no-undefined '-Wl,-rpath,$ORIGIN/../../libgimp:$ORIGIN/../../libgimpbase:$ORIGIN/../../libgimpcolor:$ORIGIN/../../libgimpconfig:$ORIGIN/../../libgimpmath:$ORIGIN/../../libgimpmodule:$ORIGIN/../../libgimpwidgets' -Wl,-rpath-link,....../gimp/builddir/libgimp -Wl,-rpath-link,....../gimp/builddir/libgimpbase -Wl,-rpath-link,....../gimp/builddir/libgimpcolor -Wl,-rpath-link,....../gimp/builddir/libgimpconfig -Wl,-rpath-link,....../gimp/builddir/libgimpmath -Wl,-rpath-link,....../gimp/builddir/libgimpmodule -Wl,-rpath-link,....../gimp/builddir/libgimpwidgets -Wl,--start-group libgimp/libgimp-3.0.so.0.9900.17 libgimpbase/libgimpbase-3.0.so.0.9900.17 libgimpcolor/libgimpcolor-3.0.so.0.9900.17 libgimpconfig/libgimpconfig-3.0.so.0.9900.17 libgimpmath/libgimpmath-3.0.so.0.9900.17 libgimp/libgimpui-3.0.so.0.9900.17 libgimpwidgets/libgimpwidgets-3.0.so.0.9900.17 /usr/lib/x86_64-linux-gnu/libgtk-3.so /usr/lib/x86_64-linux-gnu/libgdk-3.so /usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so /usr/lib/x86_64-linux-gnu/libpango-1.0.so /usr/lib/x86_64-linux-gnu/libharfbuzz.so /usr/lib/x86_64-linux-gnu/libatk-1.0.so /usr/lib/x86_64-linux-gnu/libcairo-gobject.so /usr/lib/x86_64-linux-gnu/libcairo.so /usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so /usr/lib/x86_64-linux-gnu/libgio-2.0.so /usr/lib/x86_64-linux-gnu/libgobject-2.0.so /usr/lib/x86_64-linux-gnu/libglib-2.0.so /usr/lib/x86_64-linux-gnu/libgegl-0.4.so /usr/lib/x86_64-linux-gnu/libgegl-npd-0.4.so -Wl,--export-dynamic /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so -pthread /usr/lib/x86_64-linux-gnu/libjson-glib-1.0.so /usr/lib/x86_64-linux-gnu/libbabl-0.1.so -lm -Wl,--end-group
FAILED: plug-ins/common/file-iff
cc  -o plug-ins/common/file-iff plug-ins/common/file-iff.p/file-iff.c.o -Wl,--as-needed -Wl,--no-undefined '-Wl,-rpath,$ORIGIN/../../libgimp:$ORIGIN/../../libgimpbase:$ORIGIN/../../libgimpcolor:$ORIGIN/../../libgimpconfig:$ORIGIN/../../libgimpmath:$ORIGIN/../../libgimpmodule:$ORIGIN/../../libgimpwidgets' -Wl,-rpath-link,....../gimp/builddir/libgimp -Wl,-rpath-link,....../gimp/builddir/libgimpbase -Wl,-rpath-link,....../gimp/builddir/libgimpcolor -Wl,-rpath-link,....../gimp/builddir/libgimpconfig -Wl,-rpath-link,....../gimp/builddir/libgimpmath -Wl,-rpath-link,....../gimp/builddir/libgimpmodule -Wl,-rpath-link,....../gimp/builddir/libgimpwidgets -Wl,--start-group libgimp/libgimp-3.0.so.0.9900.17 libgimpbase/libgimpbase-3.0.so.0.9900.17 libgimpcolor/libgimpcolor-3.0.so.0.9900.17 libgimpconfig/libgimpconfig-3.0.so.0.9900.17 libgimpmath/libgimpmath-3.0.so.0.9900.17 libgimp/libgimpui-3.0.so.0.9900.17 libgimpwidgets/libgimpwidgets-3.0.so.0.9900.17 /usr/lib/x86_64-linux-gnu/libgtk-3.so /usr/lib/x86_64-linux-gnu/libgdk-3.so /usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so /usr/lib/x86_64-linux-gnu/libpango-1.0.so /usr/lib/x86_64-linux-gnu/libharfbuzz.so /usr/lib/x86_64-linux-gnu/libatk-1.0.so /usr/lib/x86_64-linux-gnu/libcairo-gobject.so /usr/lib/x86_64-linux-gnu/libcairo.so /usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so /usr/lib/x86_64-linux-gnu/libgio-2.0.so /usr/lib/x86_64-linux-gnu/libgobject-2.0.so /usr/lib/x86_64-linux-gnu/libglib-2.0.so /usr/lib/x86_64-linux-gnu/libgegl-0.4.so /usr/lib/x86_64-linux-gnu/libgegl-npd-0.4.so -Wl,--export-dynamic /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so -pthread /usr/lib/x86_64-linux-gnu/libjson-glib-1.0.so /usr/lib/x86_64-linux-gnu/libbabl-0.1.so -lm -Wl,--end-group
/usr/bin/ld: plug-ins/common/file-iff.p/file-iff.c.o: in function `load_image':
file-iff.c:(.text+0x669): undefined reference to `ILBM_read'
/usr/bin/ld: file-iff.c:(.text+0x689): undefined reference to `ILBM_extractImages'
/usr/bin/ld: file-iff.c:(.text+0x7c3): undefined reference to `ILBM_imageIsACBM'
/usr/bin/ld: file-iff.c:(.text+0x7d6): undefined reference to `ILBM_convertACBMToILBM'
/usr/bin/ld: file-iff.c:(.text+0xafb): undefined reference to `ILBM_unpackByteRun'
/usr/bin/ld: file-iff.c:(.text+0xc1d): undefined reference to `ILBM_imageIsPBM'
/usr/bin/ld: file-iff.c:(.text+0xde0): undefined reference to `ILBM_freeImages'
collect2: error: ld returned 1 exit status


Can anybody give me a hand please?

Thanks...

Print this item

  Blending layers together
Posted by: fluffypanda - 07-12-2023, 09:13 AM - Forum: General questions - Replies (4)

Hi all I'm wanting to blend 2 layers together for a heightmap (where the red lines I have drawn)

Also is there a way to get the magic wand to select an area kind of like where the red lines area If I were the merge the 2 layers together rather than draw it manually with the free select tool? thanks Smile

[Image: R7d5Bew.jpg]

Print this item