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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 4,918
» Latest member: MichaelNaide
» Forum threads: 7,685
» Forum posts: 41,800

Full Statistics

Latest Threads
Multi window mode mode fa...
Forum: General questions
Last Post: teapot
8 hours ago
» Replies: 0
» Views: 72
GIMP 3.04 opens with wind...
Forum: Windows
Last Post: subbareddy
Yesterday, 07:47 AM
» Replies: 7
» Views: 3,725
Isolate, select and copy/...
Forum: General questions
Last Post: rich2005
11-04-2025, 04:39 PM
» Replies: 7
» Views: 413
"Plug-in crashed" on GIMP...
Forum: General questions
Last Post: skullamrotis
11-04-2025, 03:32 PM
» Replies: 4
» Views: 412
AIMAGoR - Artificial IMAg...
Forum: Other graphics software
Last Post: vitforlinux
11-04-2025, 12:09 PM
» Replies: 23
» Views: 9,851
RapidRAW
Forum: Other graphics software
Last Post: denzjos
11-03-2025, 12:51 PM
» Replies: 2
» Views: 222
Tutoriel installer Drea...
Forum: Tutorials and tips
Last Post: meric57
11-03-2025, 07:45 AM
» Replies: 0
» Views: 98
Nouveau Arrivant sur le f...
Forum: Watercooler
Last Post: meric57
11-03-2025, 06:45 AM
» Replies: 0
» Views: 98
Accessing GIMP’s internal...
Forum: General questions
Last Post: rich2005
11-02-2025, 12:35 PM
» Replies: 1
» Views: 189
Can't find path plug-in
Forum: General questions
Last Post: programmer_ceds
11-01-2025, 04:47 PM
» Replies: 7
» Views: 486

 
  Resize all layers in script-fu
Posted by: BaconWizard17 - 10-23-2022, 04:08 PM - Forum: Scripting questions - Replies (9)

Hi all! I've got a bit of a question about scripting. I'm trying to get a script to resize two both layers of an image instead of just the active one, but I'm not entirely sure how to go about doing that. First, I set up the image with this script:

Code:
(define (script-fu-mua-xml2-single-preview)
    (let*
        (
            (theImageWidth  543)
            (theImageHeight 1080)
            (theImage
                (car
                    (gimp-image-new
                       theImageWidth
                       theImageHeight
                       RGB
                    )
                )
            )
            (backgroundLayer
                (car
                    (gimp-layer-new
                        theImage
                        theImageWidth
                       theImageHeight
                       RGBA-IMAGE
                       "Background"
                       100
                       LAYER-MODE-NORMAL
                    )
                )
            )
            (portraitLayer
                (car
                    (gimp-layer-new
                        theImage
                       theImageWidth
                       theImageHeight
                       RGBA-IMAGE
                       "Portraits"
                       100
                       LAYER-MODE-NORMAL
                    )
                )
            )
        )
        (gimp-image-add-layer theImage backgroundLayer 0)
        (gimp-image-add-layer theImage portraitLayer 0)
        (gimp-image-set-active-layer theImage backgroundLayer)
        (gimp-display-new theImage)
    )
)

I then do some work with that image and export it. After that, I want to double the width of the image by resizing the canvas. In doing so, I want all the layers to resize as well. Here's what I have so far:
Code:
(define (script-fu-mua-xml2-double-preview image layer)
    (gimp-image-undo-group-start image)
    (gimp-selection-none image)
    (gimp-image-resize image 1086 1080 0 0)
    (gimp-layer-resize-to-image-size layer)
    (gimp-displays-flush)
    (gimp-image-undo-group-end image)
)

I cut out some extra stuff from both scripts like some codes to add vertical/horizontal guides in various places which all works the way I want it to. Generally, I have the top layer selected when I execute the second script, so the top layer is resized, but the bottom one isn't. I want it to be able to resize both layers to the image size, though, regardless of which one I have actively selected (if it's possible to do so). How do I go about doing that?

Print this item

  the color of the code does not match that of the web, it is a little lighter
Posted by: lopsided - 10-23-2022, 11:41 AM - Forum: General questions - Replies (5)

Hello, I wanted to fill the bottom part of an image with the background color. But I select the color that I put in the background and fill with it but it is not the same as the background, but it is a little lighter, as you can see in the photo. can this be resolved?
   

Print this item

  Pasting text or a link in a reply
Posted by: grits - 10-22-2022, 08:57 PM - Forum: Gimp-Forum.net - Replies (6)

Whenever I attach a link using the attachments section or paste some text from a .txt file, or just type here and hit preview, I get an extra wall of text that starts with translations and many different languages plus a lot of other text. Why is this happening and how to overcome it? 
TRANSLATE with  x
 English
Arabic
Hebrew
Polish
Bulgarian
Hindi
Portuguese
Catalan
Hmong Daw
Romanian
Chinese Simplified
Hungarian
Russian
Chinese Traditional
Indonesian
Slovak
Czech
Italian
Slovenian
Danish
Japanese
Spanish
Dutch
Klingon
Swedish
English
Korean
Thai
Estonian
Latvian
Turkish
Finnish
Lithuanian
Ukrainian
French
Malay
Urdu
German
Maltese
Vietnamese
Greek
Norwegian
Welsh
Haitian Creole
Persian


var LanguageMenu; var LanguageMenu_keys=["ar","bg","ca","zh-CHS","zh-CHT","cs","da","nl","en","et","fi","fr","de","el","ht","he","hi","mww","hu","id","it","ja","tlh","ko","lv","lt","ms","mt","no","fa","pl","pt","ro","ru","sk","sl","es","sv","th","tr","uk","ur","vi","cy"]; var LanguageMenu_values=["Arabic","Bulgarian","Catalan","Chinese Simplified","Chinese Traditional","Czech","Danish","Dutch","English","Estonian","Finnish","French","German","Greek","Haitian Creole","Hebrew","Hindi","Hmong Daw","Hungarian","Indonesian","Italian","Japanese","Klingon","Korean","Latvian","Lithuanian","Malay","Maltese","Norwegian","Persian","Polish","Portuguese","Romanian","Russian","Slovak","Slovenian","Spanish","Swedish","Thai","Turkish","Ukrainian","Urdu","Vietnamese","Welsh"]; var LanguageMenu_callback=function(){ }; var LanguageMenu_popupid='__LanguageMenu_popup';
[/url]

TRANSLATE with
COPY THE URL BELOW

Back
 
EMBED THE SNIPPET BELOW IN YOUR SITE

Enable collaborative features and customize widget: Bing Webmaster Portal
Back
var intervalId = setInterval(function () { if (MtPopUpList) { LanguageMenu = new MtPopUpList(); var langMenu = document.getElementById(LanguageMenu_popupid); var origLangDiv = document.createElement("div"); origLangDiv.id = "OriginalLanguageDiv"; origLangDiv.innerHTML = "<span id='OriginalTextSpan'>ORIGINAL: </span><span id='OriginalLanguageSpan'></span>"; langMenu.appendChild(origLangDiv); LanguageMenu.Init('LanguageMenu', LanguageMenu_keys, LanguageMenu_values, LanguageMenu_callback, LanguageMenu_popupid); window["LanguageMenu"] = LanguageMenu; clearInterval(intervalId); } }, 1);
TRANSLATE with x
English
[url=#ar]Arabic
Hebrew
Polish
Bulgarian
Hindi
Portuguese
Catalan
Hmong Daw
Romanian
Chinese Simplified
Hungarian
Russian
Chinese Traditional
Indonesian
Slovak
Czech
Italian
Slovenian
Danish
Japanese
Spanish
Dutch
Klingon
Swedish
English
Korean
Thai
Estonian
Latvian
Turkish
Finnish
Lithuanian
Ukrainian
French
Malay
Urdu
German
Maltese
Vietnamese
Greek
Norwegian
Welsh
Haitian Creole
Persian


var LanguageMenu; var LanguageMenu_keys=["ar","bg","ca","zh-CHS","zh-CHT","cs","da","nl","en","et","fi","fr","de","el","ht","he","hi","mww","hu","id","it","ja","tlh","ko","lv","lt","ms","mt","no","fa","pl","pt","ro","ru","sk","sl","es","sv","th","tr","uk","ur","vi","cy"]; var LanguageMenu_values=["Arabic","Bulgarian","Catalan","Chinese Simplified","Chinese Traditional","Czech","Danish","Dutch","English","Estonian","Finnish","French","German","Greek","Haitian Creole","Hebrew","Hindi","Hmong Daw","Hungarian","Indonesian","Italian","Japanese","Klingon","Korean","Latvian","Lithuanian","Malay","Maltese","Norwegian","Persian","Polish","Portuguese","Romanian","Russian","Slovak","Slovenian","Spanish","Swedish","Thai","Turkish","Ukrainian","Urdu","Vietnamese","Welsh"]; var LanguageMenu_callback=function(){ }; var LanguageMenu_popupid='__LanguageMenu_popup';
[/url] [url=javascript:Microsoft.Translator.FloaterShowSharePanel()]

TRANSLATE with
COPY THE URL BELOW

Back

EMBED THE SNIPPET BELOW IN YOUR SITE

Enable collaborative features and customize widget: Bing Webmaster Portal
Back
var intervalId = setInterval(function () { if (MtPopUpList) { LanguageMenu = new MtPopUpList(); var langMenu = document.getElementById(LanguageMenu_popupid); var origLangDiv = document.createElement("div"); origLangDiv.id = "OriginalLanguageDiv"; origLangDiv.innerHTML = "<span id='OriginalTextSpan'>ORIGINAL: </span><span id='OriginalLanguageSpan'></span>"; langMenu.appendChild(origLangDiv); LanguageMenu.Init('LanguageMenu', LanguageMenu_keys, LanguageMenu_values, LanguageMenu_callback, LanguageMenu_popupid); window["LanguageMenu"] = LanguageMenu; clearInterval(intervalId); } }, 1);

Print this item

  Wertkzeug (nicht vorhanden? wie beenden?)
Posted by: Hannes - 10-22-2022, 08:44 PM - Forum: General questions - Replies (11)

Hi, bin noch am Überlegen, in welches Grafik-Programm ich tiefer einsteigen soll. Gimp macht ja einen sehr vielseitigen Eindruck und bietet  auch eine umfangreiche Hilfefunktion. Was mir aber fürs erste aufgefallen ist, bzw. was ich vermisse (vielleicht auch in der Hilfe  übersehen habe):
Z.B. etwas mit dem "Stift" zeichnen - wie kann man das Werkzeug ganz ablegen, bzw. beenden? (So dass man mit der Maus über das Bild fahren kann, ohne dass etwas verändert wird, z.B. um einen Betrachter auf etwas audmerksam zu machen.)
Es gibt zwar u. a. eine kreisförmige Auswahl - wo ist aber ein Werkzeug, mit dem man einen Kreis (Ellipse, Rechteck usw.) zeichnen kann, was ja in vielen anderen Programmen zur Standardausstattung gehört?
Viele Grüße
Hannes


Hi, I'm still thinking about which graphics program I should go deeper into. Gimp makes a very versatile impression and also offers an extensive help function. What I noticed first, or what I miss (maybe I overlooked it in the help): E.g. drawing something with the "pen" - how can you put the tool down completely or end it? (So that you can move the mouse over the image without changing anything, e.g. to draw the viewer's attention to something.) There are u. a. a circular selection - but where is a tool to draw a circle (ellipse, rectangle, etc.), which is standard in many other programs? Many greetings Hannes



The language of this forum is English so please post in English. If you can't write English, then use a translation tool. A translation has been added to your post using Google Translate, but it's not the admins' job to run the translations for you.

Print this item

  They delete their question, I cannot understand why
Posted by: PixLab - 10-22-2022, 01:27 AM - Forum: Watercooler - Replies (2)

I can't understand this behavior, they delete their thread once they got an answer which fixes their problem. Angry
My answer is far from being the best answer, but I think it could have helped others people quickly by not posting the same question and then wait hours for an answer.

https://www.reddit.com/r/GIMP/comments/y...osed_loop/

Print this item

  Weird Gimp issue
Posted by: Fungus - 10-21-2022, 02:09 AM - Forum: General questions - Replies (3)

Hello all, thank you for taking the time to check my post.

I'm having an issue with Gimp. If I open a picture, I can edit it to my heart's content. But that's all. If I start a new file, just a blank one, that's fine. The moment I open a picture as a layer, gimp, for a lack of better term, freezes up. I can move the cursor. I can select tools, but I have to click one tool above the tool I want and it doesn't register as my having selected said tool unless I minimise the window and then bring it back up again. This is the same for any changes I make, including cropping. I can crop, but the lines do not appear. I have to minimise the window again and bring it back up, but even the cropping is off, so I have to click on the cropped area, guess how far to move it, minimise the program and bring it up again... Not only that, but once I have one layer added, I can no longer switch between layers.

Anyways, I hope I have explained the issue enough so that someone out there understands what is going on and how to rectify this issue.

Thanks again!

Print this item

  Special Gradients
Posted by: CubeGamer647 - 10-21-2022, 12:03 AM - Forum: General questions - Replies (2)

Is there a way to have a gradient in the shape of a square, and each corner has a different color? I achieved something similar with the conical setting, but it doesn't blend perfectly.

Print this item

  looking for a preview window plugin
Posted by: MichaJo - 10-20-2022, 01:32 PM - Forum: Extending the GIMP - Replies (5)

I've searched the net and found some tipps and hints for a workaround and some requests in bugzilla and GitLab which are closed...
So what i'm looking for is a floating preview window in single-window mode. The "New View" is just a new tab.
In multi-window mode i can get this floating window but can't pin it on top so i it disappears behind the canvas when i start editing.
Or is there a way to let the New View stay on top?

Michael


example multi-window mode:

   

Print this item

  Doing a line thinner
Posted by: aka - 10-20-2022, 05:05 AM - Forum: General questions - Replies (3)

Hi,

If I take by exemple calligraphy to do a line, is it after that please possible to use something to make this line thinner ?

Thanks

Print this item

  resynthesizer does not work on Windows 7 32-bit
Posted by: PixLab - 10-20-2022, 04:40 AM - Forum: Extending the GIMP - Replies (3)

Everything is in the title, resynthesizer does not work on Windows 7 32-bit.
GIMP 2.10.32 > GIMP itself works fine, and latest BIMP as well.

It is on another computer which is on Windows 7 32 bit (2GB RAM), it's the resynthesizer from rich2005's post > the partha one, which works just fine on the other Window 7 64-bit
On 32-bit W7 it just throw errors (did not took screenshot, though)

Does some one have a version of resynthesizer for 32 bit OS/windows?

Print this item