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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 4,572
» Latest member: apptunix0
» Forum threads: 7,449
» Forum posts: 40,712

Full Statistics

Latest Threads
AIGoR - Artificial Image ...
Forum: Other graphics software
Last Post: rich2005
4 hours ago
» Replies: 10
» Views: 3,083
processes in Whitelist
Forum: OSX
Last Post: Ofnuts
4 hours ago
» Replies: 3
» Views: 81
Can't see GIMP windows
Forum: Gimp 2.99 & Gimp 3.0
Last Post: Tankred
4 hours ago
» Replies: 3
» Views: 195
Windows save
Forum: General questions
Last Post: sallyanne
9 hours ago
» Replies: 3
» Views: 298
Trying to append part of ...
Forum: General questions
Last Post: Denarius
Yesterday, 12:26 PM
» Replies: 5
» Views: 294
clone tool
Forum: General questions
Last Post: sallyanne
Yesterday, 12:38 AM
» Replies: 6
» Views: 369
Missing fonts when export...
Forum: Gimp 2.99 & Gimp 3.0
Last Post: rich2005
06-29-2025, 07:48 AM
» Replies: 8
» Views: 431
Updating Python Scripts t...
Forum: Scripting questions
Last Post: Ofnuts
06-28-2025, 08:58 PM
» Replies: 1
» Views: 185
GIMP 3.0.4 Script-Fu Batc...
Forum: Extending the GIMP
Last Post: AgHornet
06-27-2025, 10:20 AM
» Replies: 0
» Views: 161
Technique for removing ov...
Forum: General questions
Last Post: denzjos
06-27-2025, 09:47 AM
» Replies: 12
» Views: 898

 
Scheme Editing max and min .scm
Posted by: Krikor - 04-14-2023, 01:57 PM - Forum: Extending the GIMP - Replies (5)

Hey guys,

I would like a small favor.

I would like to change a script so that it allows me to enter 0 (zero) as a minimum value and 2000 as a maximum value.

The script in its original form only allows me to enter values from 1 to 500.

I thought of manually editing the values in the .scm file, changing the values 1 to zero and 500 to 2000 respectively, but when in doubt I decided to ask for help.

Below the .scm

Code:
; Luigi Chiesa 2008.  No copyright.  Public Domain.
; Add a grid of guides
; 2012 R. Antonishen - modified to allow creating a grid of guides based of the active layer rather than the image canvas

(define (script-fu-grid-guides InImage InSource InHGrid InVGrid InMode InBorder)
 (gimp-image-undo-group-start InImage)
 (let* (
       (width (if (= InSource 0) (car (gimp-image-width InImage)) (car (gimp-drawable-width (car (gimp-image-get-active-drawable InImage))))))
         (height (if (= InSource 0) (car (gimp-image-height InImage)) (car (gimp-drawable-height (car (gimp-image-get-active-drawable InImage))))))
       (divH (if (= InMode 0) (/ width InHGrid) InHGrid))
       (divV (if (= InMode 0) (/ height InVGrid) InVGrid))
       (InHGrid (if (= InMode 0) InHGrid (/ width InHGrid)))
       (InVGrid (if (= InMode 0) InVGrid (/ height InVGrid)))
       (hcount 1)
       (vcount 1)
       (xoff (if (= InSource 0) 0 (car (gimp-drawable-offsets (car (gimp-image-get-active-drawable InImage))))))
       (yoff (if (= InSource 0) 0 (cadr (gimp-drawable-offsets (car (gimp-image-get-active-drawable InImage))))))
       )
       
   (if (= InBorder TRUE)
     (begin
       (if (and (>= yoff 0) (<= yoff (car (gimp-image-height InImage))))(gimp-image-add-hguide InImage yoff))
       (if (and (>= (+ yoff height) 0) (<= (+ yoff height) (car (gimp-image-height InImage)))) (gimp-image-add-hguide InImage (+ yoff height)))
       (if (and (>= xoff 0) (<= xoff (car (gimp-image-width InImage)))) (gimp-image-add-vguide InImage xoff))
       (if (and (>= (+ xoff width) 0) (<= (+ xoff width) (car (gimp-image-width InImage)))) (gimp-image-add-vguide InImage (+ xoff width)))
     )
   )
    
   (while (< hcount InVGrid)
     (if (and (>= (+ yoff (* divV hcount)) 0) (<= (+ yoff (* divV hcount)) (car (gimp-image-height InImage)))) (gimp-image-add-hguide InImage (+ yoff (* divV hcount))))
     (set! hcount (+ hcount 1))
   )

   (while (< vcount InHGrid)
     (if (and (>= (+ xoff (* divH vcount)) 0) (<= (+ xoff (* divH vcount)) (car (gimp-image-width InImage)))) (gimp-image-add-vguide InImage (+ xoff (* divH vcount))))
     (set! vcount (+ vcount 1))
   )

    (gimp-image-undo-group-end InImage)
 (gimp-displays-flush)
 )
)

(script-fu-register
 "script-fu-grid-guides"
 "<Image>/Image/Guides/Grid"
 "Add a grid of guides by specifying either the number of guides or the guide spacing"
 "Luigi Chiesa and Rob Antonishen"
 "Public Domain"
 "November 2009"
 "*"
   SF-IMAGE      "Image"   0
    SF-OPTION       "Based on" '("Image Canvas" "Active Layer")    
    SF-ADJUSTMENT    "Horizontal"    '(2 1 500 1 10 0 1)
    SF-ADJUSTMENT    "Vertical"    '(2 1 500 1 10 0 1)
    SF-OPTION       "Mode" '("Number of Divisions" "Spacing of Guides (px)")    
   SF-TOGGLE "Border guides?" FALSE
)

Thanks in advance!

Print this item

  Make one large image by tiling many smaller images in specified order?
Posted by: jupiter - 04-14-2023, 09:48 AM - Forum: General questions - Replies (10)

How do you get GIMP to make one large image out of about 6,800 small (256x256 pixel) images? It's like you had one large picture and you cut it up into 6,800 little squares. I only have the little squares, not the original, and I want to put them together without any seams showing to make the large original image. They're numbered in sequence, they must stay in the exact sequence, and I already know exactly how many rows and columns the composite needs to have. If it's easier in some other program than GIMP that's fine too.

Print this item

  Divide selection using guides
Posted by: goran - 04-14-2023, 09:33 AM - Forum: Extending the GIMP - Replies (19)

Hello,

First time here Smile

Anyway, I thought it would be useful if I could tell GIMP to use current selection as area for setting guides.

There is an option called New guide from selection (Images -> Guides -> New guide from selection), but this just
puts 2 horizontal and 2 vertical guides along sides of selection.


What I had in mind was to use current rectangular selection (or bounding box of it) and then "divide" it into equal parts by
setting guides  (number settable by user), either horizontally, vertically, or both.

So for example, let's say I have some kind of object on my canvas, and it's already placed on the right spot. 
And maybe I want to do some work on the middle third. 

I could use measure tool, but this won't work without calculator.


Another option would be using rectangular selection and then setting Rule of thirds under tool options.
But choosing any tool after that results in "guides" vanishing inside of the selection, so you have to put guides
manually right after making that selection, if you don't want to loose them.

Also, if you need any number of divisions that's not already predefined (center, thirds, fifths...) this technique will not really work. 
It can be done, but it will definitely take lots of repetitive steps.

So I wrote a small plugin that does exactly what I had in mind.

It's not finished yet, but it works. 

So how do you use it? After placing it in plugin directory, it registers itself under
Image -> Guides -> Divide selection using guides

First you make a selection. It doesn't have to be rectangular, and if it's not it will use the bounding box of the selection
for calculation. After making a selection, choose Divide selection using guides (under Image -> Guides).
Enter the number of divisions you need, and that's it.

Now, maybe I'm re-discovering here something that's common knowledge among gimpers,
but even if that's the case, this was a good learning experience. The only problem is I'm
getting lots of GEGL related errors (GIMP 2.10.32), but from what I could read here, it's not my plugin's fault. Smile



Attached Files
.zip   g_divide_selection_using_guides.zip (Size: 725 bytes / Downloads: 300)
Print this item

  can't install 2.10.34
Posted by: Averroes - 04-13-2023, 06:15 PM - Forum: Windows - Replies (1)

I had 64-bit 2.10.32 but started the update for 2.10.34.

I've tried several times, but each time when I get to the very end when the bar is full and it has installed or is installing twain.exe, it quits with the message "access denied" and then "setup is not complete. Please correct the problem and run Setup again."It doesn't tell me what the problem is, though.

The result of this is that the installer removed the old version of Gimp and now I don't have Gimp at all. I've never had this problem before.

I disabled my virus protection temporarily in case that interfered, but it didn't help. I tried re-installing the version I had before and I get the same error message.

I'm running Windows 10 22H2, fully up-to-date

Any suggestions?

Print this item

  How do you install the offline help?
Posted by: jupiter - 04-13-2023, 04:28 PM - Forum: Older Gimp versions (2.8, 2.6....) - Replies (1)

How do you install the offline help in 2.8.0? I've spent to hours digging online and can't find any trace of instructions. The GIMP help pages just keep repeating over and over "Install the help file" and that's it. I downloaded it frolm

https://docs.gimp.org/download.html

Print this item

  Fill with PP color not working
Posted by: Arthas - 04-12-2023, 04:22 PM - Forum: General questions - Replies (2)

When I try to fill the selection with the color of PP, the selection is colored gray. As you can see, the PP color is cyan, but the elliptical selection is colored in gray

[Image: p9v2UNo.gif][Image: euakvpn.gif]

Print this item

  gimp image editing
Posted by: kattamurisangeetha@gmail.com - 04-12-2023, 08:52 AM - Forum: General questions - Replies (2)

How to edit the background image of gimp with red mark as per attached image. The border line between text to be adjusted . How to di this. Please help me. Thank you



Attached Files Thumbnail(s)
   
Print this item

  Gimp 2.10 menu font size issue
Posted by: gman - 04-11-2023, 08:50 PM - Forum: General questions - Replies (3)

I recently switched from Linux Mint 19 to version 21. This (unfortunately) also meant saying goodbye to gimp 2.8. The new themes ("Dark","Gray","Light","System") from Gimp 2.10 are an impertinence. In addition, the font size in the Gimp menus is unacceptable. I work on two 4K monitors (34" and 32"), and gimp has always looked good after various updates over the last few years. How do you get acceptable settings that align with Gimp 2.8? I know there are some tweaks possible. One is


Code:
$ mkdir ~/.config/GIMP/2.10/themes/DarkHighDPI
$ cd /usr/share/gimp/2.0/themes/Dark
$ cp -r gtkrc ui ~/.config/GIMP/2.10/themes/DarkHighDPI

~/.config/GIMP/2.10/themes/DarkHighDPI/gtkrc

61c61
< gtk-font-name = "Sans 13"
---
> #gtk-font-name = "Sans 11"
68c68
<   font_name = "Sans 13"
---
> #  font_name = "Sans 11"

Somehow changes here make it worse and more inconsistent. Is there an easy way to switch back to the old look and feel. 

Why can't the new gimp automatically adapt to different resolutions (DPI) like most other Linux apps can?

Print this item

  Batch fix image artefacts
Posted by: kablonz - 04-11-2023, 08:41 PM - Forum: General questions - Replies (2)

Hi forum!

I have a set of pictures (a few hundred) of a wild life camera where I got some artefacts when the sun was too strong. Is there any way I can batch process my pictures and get rid of those artefacts?

Attached some samples of how the artefacts look
Thanks for your help in advance!



Attached Files Thumbnail(s)
   
Print this item

  RGB to LCH Conversions
Posted by: NotEvenStickMen - 04-11-2023, 09:27 AM - Forum: General questions - Replies (6)

I've coded a conversion of RGB to LCH  & tried to use Gimp to verify my numbers. However, there are discrepencies which I don't understand. 
e.g. 
#0009be     RGB(0,9,190):     Gimp LCH (21.3, 102.9, 300.7)    My LCH (23.4, 105.1, 305.7)

The ColorMath Online Colour converter & Converting Colours Converter agree with me, give or take some minor rounding errors.
Is Gimp doing some sort of Out of Gamut compensation? (I'm guessing at this because I'm a beginner in this area).

Print this item