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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 5,947
» Latest member: JohnB
» Forum threads: 7,376
» Forum posts: 40,171

Full Statistics

Latest Threads
VERY slow resizing in 2.1...
Forum: General questions
Last Post: rich2005
1 hour ago
» Replies: 5
» Views: 2,948
Converting python plugin-...
Forum: Gimp 2.99 & Gimp 3.0
Last Post: rich2005
11 hours ago
» Replies: 52
» Views: 4,988
Black Hand Cursor when us...
Forum: Gimp 2.99 & Gimp 3.0
Last Post: JohnB
Yesterday, 10:32 PM
» Replies: 0
» Views: 49
Save Rectangle Size
Forum: General questions
Last Post: DennisV
Yesterday, 08:24 PM
» Replies: 5
» Views: 252
Look of Toolbox>
Forum: Gimp 2.99 & Gimp 3.0
Last Post: FransHarderwijk
Yesterday, 08:07 PM
» Replies: 4
» Views: 169
ofn3-layer-tiles and ofn3...
Forum: Extending the GIMP
Last Post: Ofnuts
Yesterday, 02:25 PM
» Replies: 0
» Views: 110
ofn3-resource-manager
Forum: Extending the GIMP
Last Post: saberwarthog
Yesterday, 01:52 PM
» Replies: 5
» Views: 162
Preset Missing after Upda...
Forum: General questions
Last Post: Ofnuts
Yesterday, 11:08 AM
» Replies: 1
» Views: 88
Ice Hockey problem - shoo...
Forum: General questions
Last Post: denzjos
Yesterday, 08:44 AM
» Replies: 6
» Views: 276
How would you do a weathe...
Forum: General questions
Last Post: Tas_mania
04-26-2025, 10:21 PM
» Replies: 9
» Views: 770

 
  settings palette disappeared
Posted by: gib65 - 12-22-2017, 04:05 AM - Forum: General questions - Replies (3)

Hello,

Somehow the settings palette for each tool has disappeared and I can get it back. By 'settings palette', I mean, for example, the palette on which I can choose remove, union, intersection, etc. for the magic wand select tool, or the line thickness of the free form pencil tool. There is nothing in the recently closed windows list. Reinstalling Gimp didn't work. How do I get it back?

Thanks

Print this item

  Scheme help (unbound error)
Posted by: ssallen - 12-21-2017, 08:31 PM - Forum: Scripting questions - Replies (3)

See below.
I get a g1Layer is unbound error, despite the fact that (non-empty) text is being passed in to the g1Text parameter.
The intent is to create a text layer and then position a comic book style talk bubble underneath it.

Can you place conditionals inside the local variable declaration area in scheme? How do I prevent bubbles/text layer being created if the user passes in a blank string?


Code:
  (script-fu-register
    "script-fu-talk-bubble"                        ;func name
    "Diag Bubble"                                  ;menu label
    "Creates a dialog bubble"              ;description
    "-0-"                             ;author
    "copyright 2017, -0-"        ;copyright notice
    "November 10, 2017"                          ;date created
    ""                     ;image type that the script works on
    SF-IMAGE       "Input image" 0
    SF-DRAWABLE    "Input drawable" 0
    SF-STRING      "g1Text"          "**"   ;a string variable

    SF-FONT        "Font"          "Sans"    ;a font variable
    SF-ADJUSTMENT  "Font size"     '(32 1 1000 1 10 0 1) ;a spin-button
    SF-COLOR       "gText Color"    '(250 104 255)     ;color variable
    SF-COLOR       "mText Color"    '(0 0 0)     ;color variable
    SF-COLOR       "dText Color"    '(208 59 59)     ;color variable

    SF-COLOR      "Bubble color"   '(255 255 255)
    SF-TOGGLE     _"createBubbles"          TRUE
  )
  (script-fu-menu-register "script-fu-talk-bubble" "<Image>/Image/CreateLayers")
  
 (define (script-fu-talk-bubble aimg adraw g1Text inFont inFontSize textColorG textColorM textColorD bubbleColor createBubbles)
    
    (gimp-context-set-foreground textColorG)
    (gimp-context-set-background bubbleColor)
    
    (let*
        (
            (theImageWidth  (car (gimp-drawable-width  adraw) ) )
            (theImage aimg)
            (theImageHeight (car (gimp-drawable-height adraw) ) )
            (theImageX)
            (theImageY)
            (theText)     
            (theTextBubble)        
            (theBuffer) 
            (relLocX 12)
            (space 32)
            (g1Len (string-length g1Text))        

            (set! theImageWidth   (car (gimp-drawable-width  adraw) ) )
            (set! theImageHeight  (car (gimp-drawable-height adraw) ) )    
            
            (if (> g1Len 0)
                (g1Layer
                    (car
                         (gimp-text-layer-new
                          aimg
                          g1Text
                          inFont
                          inFontSize
                          PIXELS
                         )
                     )
                )
            )
                                              
        ) 
    

        (if (= createBubbles TRUE)
        (         
            (gimp-image-add-layer theImage g1Layer 0)
            
            (gimp-text-layer-set-color m1Layer textColorM)
            
            (gimp-layer-set-offsets g1Layer 12 relLocX)
            (set! relLocX (+ (+ 12 inFontSize) space))

            
            (set! theImageWidth   (car (gimp-drawable-width  g1Layer) ) )
            (set! theImageHeight  (car (gimp-drawable-height g1Layer) ) )         
            (set! theImageX   (car (gimp-drawable-offsets  g1Layer) ) )
            (set! theImageY  (cadr (gimp-drawable-offsets g1Layer) ) )         
         

            (set! theTextBubble
                    (car
                          (gimp-image-select-round-rectangle
                          theImage 0 theImageX theImageY theImageWidth theImageHeight 12 12)
                    )            
            )    
        
            (gimp-selection-grow theImage 4)
            (gimp-context-set-foreground bubbleColor)

            (gimp-edit-bucket-fill bubbleLayer 0 0 100 0 0 0 0 )

            (gimp-layer-set-opacity bubbleLayer 90)         
         
        )) 
    )
  )         

Print this item

  Warp / transform image along path
Posted by: asdthy - 12-20-2017, 11:13 PM - Forum: General questions - Replies (6)

Hi,
I'd like to shift an image to fit a path that I've drawn. There used to be a plugin/script that did this but i can't find it anymore.
I have a few scanned images from paper sections that were a meter or more long and the images are skewed along the length varying amounts somewhat randomly.
Basically I'd draw a path along one border line of the skewed image. I'd then draw horizontal path. The plugin would subtract the space between the 2 paths in line with the vertical direction of the image.
This worked really well and  I have some other cases where I'd like to do this, but as I said I can't find the plugin anymore.

Has anyone ever done something like this or have any ideas? 

Thanks
Matt

Print this item

  Problems running python-fu in external editor
Posted by: Nodine - 12-20-2017, 08:08 PM - Forum: Scripting questions - Replies (2)

Hello! I'm looking to build a fairly advanced script using the Gimp Python extension.

I have run into some problems though, and these are my symptoms, perhaps someone here is able to help me.

When I run Python-fu from Gimp I get what you would expect, and a clear indication that everything is working.

System details:
Win10 - 64 bit

Gimp 2.8.22
Python.exe - version 2.7 (the one included in Gimp installation and seperate install to be sure)

Gimp message:

Code:
GIMP 2.8.22 Python Console
Python 2.7.10 (default, May 23 2015, 09:40:32) [MSC v.1500 32 bit (Intel)]
➤> import sys
➤> sys.path
['C:\\Program Files\\GIMP 2\\lib\\gimp\\2.0\\plug-ins', 'C:\\Program Files\\GIMP 2\\32\\lib\\gimp\\2.0\\python', 'C:\\Program Files\\GIMP 2\\Python\\python27.zip', 'C:\\Program Files\\GIMP 2\\Python\\DLLs', 'C:\\Program Files\\GIMP 2\\Python\\lib', 'C:\\Program Files\\GIMP 2\\Python\\lib\\plat-win', 'C:\\Program Files\\GIMP 2\\Python\\lib\\lib-tk', 'C:\\Program Files\\GIMP 2\\Python', 'C:\\Program Files\\GIMP 2\\Python\\lib\\site-packages', 'C:\\Program Files\\GIMP 2\\Python\\lib\\site-packages\\gtk-2.0', 'C:\\Program Files\\GIMP 2\\Python\\lib\\site-packages']
➤> gimp
<module 'gimp' from 'C:\Program Files\GIMP 2\32\lib\gimp\2.0\python\gimp.pyd'>
➤>

However when I run a script with that entire path included, from the python.exe file I get:
Code:
C:\Python27\python.exe D:/P5/m-cworkshop/Sprites2d/spritofu.py
Traceback (most recent call last):
 File "D:/P5/m-cworkshop/Sprites2d/spritofu.py", line 2, in <module>
   from gimpfu import *
 File "C:\Program Files\GIMP 2\32\lib\gimp\2.0\python\gimpfu.py", line 76, in <module>
   import gimp
ImportError: DLL load failed: Det angivne modul blev ikke fundet.

Process finished with exit code 1

So its clearly able to pick up the gimpfu.py file, but not the gimp.pyd file right next to it.

Here is what i have been able to verify so far:
My python installations are 32 bit.
This happens on both my computers.
This happens no matter how many things I include in the path, as long as I include the gimpfu.py path.

I hope you can help me.
Regards - Nodine

Print this item

  Error: .dll's missing but ....
Posted by: lpvmc - 12-20-2017, 04:04 PM - Forum: Windows - Replies (4)

Hi,

When starting up GIMP I get a dialogbox with the following message: Cann't finf the following file: ZdlPvy/c:/ProgramFiles?Gimp2/bin/libwebkitgtk-1.0-0.dll.

This happens for three different files.

When I check c:/ProgramFiles etc for the .dll's they are there.

I have no idea what ZdlPvy is, but cann't find it on my computer.

Why does Gimp report the files missing while they are there with the path as in the error.

Any comment is very much appreciated.

Kindest regards, Leo

Print this item

  Option to display rgb 0-255 instead of %
Posted by: mholder - 12-20-2017, 12:15 PM - Forum: Gimp 2.10 - Replies (7)

I understand that greater than 8 bits per channel the values will be much more than 0-255.

But I'm working with a program that is requesting RGB 0-255 values.  The problem for me is if I am in 8 bit precision, then it is a hassle to constantly convert 0-100% to 0-255.

Is there an option somewhere to change the display to 0-255 instead of 0-100?



Attached Files Image(s)
   
Print this item

  Gaussian blur not working correctly?
Posted by: CC_Dev - 12-20-2017, 04:52 AM - Forum: General questions - Replies (2)

Operating on osx. Problem getting desired effect

Desired Effect of a guassian blur:
[Image: Screen_Shot_2017-12-19_at_8.37.42_PM.png]

Current result:
[Image: Screen_Shot_2017-12-19_at_8.37.08_PM.png]
Closeup:
[Image: Screen_Shot_2017-12-19_at_8.37.33_PM.png]

so It looks like the blur effect is a gradient opacity, but inverted? I want it to blur out from the border, not increase the opacity on the inside of the border. Border should be 100% opaque, with an increasingly transparent gradient out from the edge. 

What am I doing wrong?

Print this item

  ofn-bend-path
Posted by: Ofnuts - 12-19-2017, 08:48 PM - Forum: Extending the GIMP - Replies (104)

  • Given a source path (in blue)
  • You provide an envelope path made of two strokes (in red)
  • The script produces the bent path (in green)
   
  • By design, the script only bends the path vertically (in the image above, you can observe that the vertical limits of the characters in the source and bent paths are aligned)
  • The bent path is produced between the two strokes of the envelope path.
  • The source path can be elsewhere,  it only needs to overlap vertically with the envelope strokes
Available at the usual place. Enjoy.

Print this item

  What do you call this effect ?
Posted by: Espermaschine - 12-19-2017, 02:02 PM - Forum: General questions - Replies (8)

Its based on some kind of mathematical function, right ?
Exponential growth ?

   

Print this item

  MY SIMPLE ART
Posted by: GIMPER2 - 12-19-2017, 01:12 PM - Forum: Gallery - No Replies

[Image: 3592_2-GOOD%20MORNING.png]

[Image: 10379-20171218-00eb90.gif]

Print this item