Welcome, Guest |
You have to register before you can post on our site.
|
Latest Threads |
G'MIC Inpaint Routines
Forum: General questions
Last Post: denzjos
10 hours ago
» Replies: 2
» Views: 132
|
Impossible to remove font...
Forum: Gimp 2.99 & Gimp 3.0
Last Post: Ofnuts
Yesterday, 07:34 AM
» Replies: 3
» Views: 104
|
How to undock image windo...
Forum: General questions
Last Post: madstylesnz
Yesterday, 02:45 AM
» Replies: 2
» Views: 147
|
Introduction with questio...
Forum: General questions
Last Post: sallyanne
05-17-2025, 04:02 AM
» Replies: 10
» Views: 488
|
@Tas_mania: soon at a ha...
Forum: Watercooler
Last Post: Tas_mania
05-16-2025, 11:34 PM
» Replies: 2
» Views: 208
|
How to connect layers ?
Forum: Gimp 2.99 & Gimp 3.0
Last Post: Ofnuts
05-16-2025, 05:13 PM
» Replies: 11
» Views: 1,117
|
RawTherapy to Gimp
Forum: General questions
Last Post: AlbertoA
05-15-2025, 05:29 PM
» Replies: 6
» Views: 497
|
How to export as PNG with...
Forum: General questions
Last Post: dinoexplores
05-15-2025, 10:03 AM
» Replies: 7
» Views: 10,495
|
Crockett 80s (Glitch Effe...
Forum: Gallery
Last Post: Q20Bruno
05-14-2025, 05:22 PM
» Replies: 5
» Views: 4,919
|
No keyboard shortcuts—all...
Forum: Gimp 2.99 & Gimp 3.0
Last Post: rich2005
05-14-2025, 05:18 PM
» Replies: 7
» Views: 452
|
|
|
Text to path query |
Posted by: Evans8773 - 03-08-2025, 01:47 PM - Forum: General questions
- Replies (1)
|
 |
Hi all
Just started using gimp again and have an issue I have had in the past but forgot how to fix it. Applying text to a circle the top of the circle text along path does as intended but when I do the bottom half text it apples to the path like it is stacked and just looks like jumbled up spaghetti. Like I said this has happened before but cannot remember how to fix it.
The initial text to path requires me to use the flip tool so it looks right but then after the flip I get spaghetti
Hope someone can help
Cheers
|
|
|
Cutting image along guides for printing |
Posted by: azar - 03-06-2025, 04:57 PM - Forum: General questions
- Replies (5)
|
 |
HELLO I will try to explain my problem. I want to turn an image into a poster with custom dimensions, so I wanted to use GIMP’s guides and crop the image following the guides. The thing I don’t understand is that nothing matches when I put them in the image: the image size, the guides, etc.
I have an image that is 63×83 cm.
I set my margins in cm based on the image scale, but they should be much smaller. Instead, they are still set to 1 cm.
And when I go to Image > Image Size and Dimensions, I get another size entirely.
THANK
IMAGE
|
|
|
Unable to find or use script I created |
Posted by: Desicub99 - 03-03-2025, 10:18 PM - Forum: Extending the GIMP
- Replies (4)
|
 |
I developed this script:
(define (script-fu-red-rectangle-with-borders)
(let* (
(width 640)
(height 400)
(rect-width 625)
(rect-height 385)
(border-size 19)
(black-border 5)
(image (car (gimp-image-new width height RGB)))
(bg-layer (car (gimp-layer-new image width height RGBA-IMAGE "Background" 100 NORMAL)))
(rect-layer (car (gimp-layer-new image width height RGBA-IMAGE "Red Rectangle" 100 NORMAL)))
(border-layer (car (gimp-layer-new image width height RGBA-IMAGE "White Border" 100 NORMAL)))
(black-border-layer (car (gimp-layer-new image width height RGBA-IMAGE "Black Border" 100 NORMAL)))
)
;; Add layers to image
(gimp-image-insert-layer image bg-layer 0 -1)
(gimp-image-insert-layer image rect-layer 0 -1)
(gimp-image-insert-layer image border-layer 0 -1)
(gimp-image-insert-layer image black-border-layer 0 -1)
;; Set transparency background
(gimp-context-set-background '(0 0 0 0))
(gimp-drawable-fill bg-layer TRANSPARENT-FILL)
;; Select centered rectangle
(gimp-rect-select image
(/ (- width rect-width) 2) ;; X Position
(/ (- height rect-height) 2) ;; Y Position
rect-width rect-height
REPLACE)
;; Fill rectangle with mesh pattern
(gimp-context-set-pattern "Mesh") ;; Ensure GIMP has a mesh pattern
(gimp-edit-bucket-fill rect-layer PATTERN-FILL NORMAL 100 0 FALSE 0 0)
;; Stroke red border
(gimp-context-set-foreground '(255 0 0)) ;; Set color to red
(gimp-edit-stroke rect-layer)
;; Expand selection for white border
(gimp-selection-border image border-size)
;; Fill border with white
(gimp-context-set-foreground '(255 255 255)) ;; White color
(gimp-edit-bucket-fill border-layer FG-BUCKET-FILL NORMAL 100 0 FALSE 0 0)
;; Deselect
(gimp-selection-none image)
;; Select entire canvas for black border
(gimp-selection-all image)
;; Stroke black border
(gimp-context-set-foreground '(0 0 0)) ;; Black color
(gimp-edit-stroke black-border-layer)
;; Display image
(gimp-display-new image)
(gimp-image-undo-group-end image)
))
;; Register the script in GIMP
(script-fu-register
"script-fu-red-rectangle-with-borders" ;; Internal script name
"Red Rectangle with Borders" ;; Menu name (what you see in GIMP)
"Creates a red rectangle with a mesh pattern and white/black borders"
"Your Name"
"Your Name"
"2025"
"*"
""
"script-fu-red-rectangle-with-borders") ;; Function to execute
and have tried several ways to use it.
First I saved it in:
C:\Users\username\AppData\Roaming\GIMP\2.10\scripts\red-rectangle-with-borders.scm
I tried filters -> Script-FU -> Refresh Script and clicked on filters -> Script-FU and the file wasn't there. I closed Gimp and reopened it.
Then I I looked in help -> Plug-in browser and couldn't find it there.
I looked in all of the menus since I read that the scm file could be anywhere but no luck.
So I saved it in downloads and moved it to this path:
C:\Program Files\GIMP 2\share\gimp\2.0\scripts\red-rectangle-with-borders.scm
I did the same things that I did when I saved it in the roaming folder and still no luck.
Would someone be gracious enough to show me what I did wrong? Thanks
|
|
|
Troubles with porting a script to Gimp3 |
Posted by: alvk - 03-03-2025, 10:42 AM - Forum: Scripting questions
- Replies (23)
|
 |
Hello!
I have trouble with porting a script written in Script-Fu from Gimp2 to Gimp3. I managed to run the script, but when script execution finished, I've got the following error: argument 1 must be: number. Unfortunately, I cannot understand why this error occurs. Could anyone review my code and help me to make the script working. The script is below:
Code:
#!/usr/bin/env gimp-script-fu-interpreter-3.0
; Adds labels to a layer
; Works with Gimp v.3
(define (script-fu-add-labels image drawables user-text font font-size
font-color x y outline-toggle outline-color
outline-thickness)
(let* ((current-layer (vector-ref drawables 0))
(off-x (car (gimp-drawable-get-offsets current-layer)))
(off-y (cadr (gimp-drawable-get-offsets current-layer)))
(text-layer)
(text-layer-position-x (+ off-x x))
(text-layer-position-y (+ off-y y))
(text-layer-outline)
(text-layer-vectors)
(text-layer-group)
(text-layer-group-name)
(text-foreground-color-old)
(parent-layer-type 0)
(parent-layer-name)
(parent-layer-group (car (gimp-item-get-parent current-layer)))
(old-background (car (gimp-context-get-background))))
(cond ((= #t (car (gimp-item-id-is-channel current-layer))) (set! layer-type 1))
((= #t (car (gimp-item-is-group current-layer))) (set! layer-type 1))
((= #t (car (gimp-item-id-is-layer-mask current-layer))) (set! layer-type 1))
((= #t (car (gimp-item-id-is-selection current-layer))) (set! layer-type 1))
((= #t (car (gimp-item-id-is-text-layer current-layer))) (set! layer-type 1)))
(gimp-image-undo-group-start image)
(if (= 1 parent-layer-type)
(begin
(set! parent-layer-name (car (gimp-item-get-name current-layer)))
(gimp-message
(string-append "Cannont add the label to the layer " parent-layer-name)))
(begin
(set! text-layer (car (gimp-text-font image -1 text-layer-position-x
text-layer-position-y user-text 2 #t
font-size POINTS font)))
(gimp-text-layer-set-color text-layer font-color)
(when (= outline-toggle #t)
(set! text-layer-group (car (gimp-layer-group-new image)))
(set! text-layer-group-name
(string-append "Text_" (car (gimp-text-layer-get-text
text-layer))))
(set! text-layer-vectors (car (gimp-vectors-new-from-text-layer image
text-layer)))
(set! text-layer-outline (car (gimp-layer-copy text-layer #t)))
(set! text-foreground-color-old (car (gimp-context-get-foreground)))
(gimp-item-set-name text-layer-group text-layer-group-name)
(gimp-image-insert-layer image text-layer-group 0 0)
(gimp-image-insert-vectors image text-layer-vectors 0 -1)
(gimp-image-reorder-item image text-layer text-layer-group 0)
(gimp-image-insert-layer image text-layer-outline text-layer-group -1)
(gimp-context-set-foreground outline-color)
(gimp-context-set-stroke-method 0)
(gimp-context-set-line-width outline-thickness)
(gimp-drawable-edit-stroke-item text-layer-outline text-layer-vectors)
(gimp-context-set-foreground text-foreground-color-old)
(gimp-item-set-expanded text-layer-group #f)
(gimp-item-set-lock-position text-layer-outline #t))
(gimp-item-set-lock-position text-layer #t)))
(gimp-displays-flush)
(gimp-image-undo-group-end image)))
(script-fu-register-filter "script-fu-add-labels"
_"Add labels"
_""
""
""
""
"*"
SF-ONE-OR-MORE-DRAWABLE
SF-STRING _"Label" "A"
SF-FONT _"Font" "Arial Bold"
SF-ADJUSTMENT _"Font size" (list 50 5 100 1 10 0 1)
SF-COLOR _"Font color" (list 0 0 0)
SF-ADJUSTMENT _"Offset X" (list 6 0 500 1 10 0 1)
SF-ADJUSTMENT _"Offset Y" (list 6 0 500 1 10 0 1)
SF-TOGGLE _"Outline" #f
SF-COLOR _"Outline color" (list 255 255 255)
SF-ADJUSTMENT _"Outline thickness" (list 1 0 5 1 1 0 1)
)
(script-fu-menu-register "script-fu-add-labels"
"<Image>/Figures")
|
|
|
Getting emotional with my favorite brand of machines |
Posted by: Ofnuts - 03-02-2025, 08:50 PM - Forum: Gallery
- Replies (6)
|
 |
Actually trying my hand with Darktable. Just discovered that it can export directly to XCF 32-bit FP format.
Most of the work (exposure/tone/perspective) done in DT. Gimp used to lighten up the red dot (which could possibly be done in DT once I know it better) and clean out a few dust specks.
|
|
|
printing issue, please help |
Posted by: bringoutthegimp! - 03-02-2025, 07:09 PM - Forum: General questions
- Replies (11)
|
 |
I've recently embarked on digitizing a number of b&w negatives, which I have scanned using VueScan. I'm now at the point of editing them slightly using Gimp (v 3.0), which has gone fairly well, after climbing the learning curve.
I now want to print them. To do so, I'm first selecting the Image-->Print Size, and selecting (for example) a width (7.0) and and height (4.692), which results in a PPI of 1303 in my case. From there, I'm simply selecting the "Print" option in Gimp and sending the job to the printer (Canon Pixma-100). In the Print dialog, the same sizes and ppi values are reflected (7 x 4.692, 1303). I'm using A3+ paper (I know, it's oversized, but it's what I have at the moment). I used to have the printer installed on a former computer, but that was years ago. This time around, rather than use the installation disks and their bloatware I merely downloaded the current printer driver from Canon's site.
When I print the photo at 300x300 dpi it prints very small on the paper (~3.5" x 2.25"). When I print at 600x600 dpi it seems to prints at the correct dimensions (~7" x 4.7"). When I print at 1200x1200 dpi it prints only a small portion of the image (very large), since the majority of the image would appear off of the page. In each case, it would seem that the image should actually print at 7.0" x 4.692" since that is what I selected...yet, these different sizes are the result. It appears that the DPI setting selected in the Gimp Print option is dictating the image size, rather than the Print Size that I have selected for the file.
I recognize that it might be the case that the printer driver is overriding the Print Size. When I select the printer via my Mac (System Settings-->Printers and Scanners-->Canon Pro 100 Series) there is no option anywhere to un/check a "Fit to Page" or "Scale to Fit" option, which I thought might be the issue.
Does anyone know how I can get images to print at the size I've selected, given my current setup?
Thanks in advance for any help or ideas, I appreciate it.
|
|
|
|