Welcome, Guest |
You have to register before you can post on our site.
|
|
|
All I Want For Christmas |
Posted by: rich2005 - 12-24-2017, 12:21 PM - Forum: Watercooler
- Replies (1)
|
|
Young boy goes to his father and asks
'Can I have a BitCoin for Chrismas'
Father says
What! £10,362 ....
£9,760 is a lot of money ....
Why do you want £11,061?
|
|
|
delete not working |
Posted by: garyartista - 12-23-2017, 03:57 PM - Forum: General questions
- Replies (10)
|
|
I am using gimp 2.8 on Ubuntu 16.04 with a Wacom Tablet. The problem is that even after reinstalling Gimp the erase key fails to work. It continues to paint, say, and refuses to switch to erase. I can make text boxes and use other tools but the program refuses to switch to erase. If I change the file .gimp2.8 to gimp2.8delete or something and reinitiate Gimp, erase works for a few minutes and the problem returns. The problem occurs whether I use the tablet or the mouse. Any thoughts?
|
|
|
Move a text layer. |
Posted by: ssallen - 12-22-2017, 04:23 PM - Forum: General questions
- Replies (4)
|
|
Is there a way to do this? The move tool doesn't work on text layers apparently.
I create a lot of text layers programatically and I don't want to have to use the resize tools afterwards just to move the text around. I want the same dimensions... just placed in a different location.
Does anyone have a any tips or tricks for this?
|
|
|
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
|
|
|
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)
))
)
)
|
|
|
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
|
|
|
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
|
|
|
|