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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 5,009
» Latest member: NetWeeZurd
» Forum threads: 7,745
» Forum posts: 42,081

Full Statistics

Latest Threads
Paint bucket acts "weird"
Forum: General questions
Last Post: denzjos
3 hours ago
» Replies: 6
» Views: 252
Install gimp user manual ...
Forum: Linux and other Unixen
Last Post: rich2005
5 hours ago
» Replies: 1
» Views: 100
Why am'I fighting with GI...
Forum: Linux and other Unixen
Last Post: rich2005
5 hours ago
» Replies: 1
» Views: 75
Very, very nice startup t...
Forum: General questions
Last Post: mrkid
12-18-2025, 04:37 PM
» Replies: 0
» Views: 162
Why does HTML/css scale i...
Forum: General questions
Last Post: Tas_mania
12-17-2025, 07:20 PM
» Replies: 1
» Views: 226
Path autocurves plugin (G...
Forum: Extending the GIMP
Last Post: InquisitiveAsHell
12-17-2025, 07:40 AM
» Replies: 6
» Views: 702
Transparent Background Ad...
Forum: General questions
Last Post: Kramskry
12-16-2025, 08:52 PM
» Replies: 2
» Views: 337
Inside drop shadow maybe?...
Forum: General questions
Last Post: denzjos
12-16-2025, 04:45 PM
» Replies: 2
» Views: 257
gexport: Make-like tool f...
Forum: Extending the GIMP
Last Post: JohnHammersley
12-16-2025, 03:42 PM
» Replies: 0
» Views: 152
Help with colour matching
Forum: General questions
Last Post: denzjos
12-13-2025, 05:05 PM
» Replies: 1
» Views: 265

 
  ofn3-interleave-layers
Posted by: Ofnuts - 11-24-2024, 05:52 PM - Forum: Extending the GIMP - No Replies

This is the conversion of ofn-interleave-layers to Gimp3. Essentially the same functionality, even if the script works slightly differently. In particular: 

  • it works on the selected layers (so you have to know about multi-selection in Gimp3)
  • it is much more laid back about  non-matching dimensions
  • it handles groups
  • it handles image mode and precision
Script is on my shiny new Gimp3-Tools site.

Of course, this is my first published v3 script so I'm expecting snags here and there so please report any, especially if you use Windows or OSX.

Enjoy!

Now, beer.

PS: Thinking about adding some kind of auto-multiply feature, so that if you want, for instance; combine 3 frames with 6 frames, it will replicate the 3 frame set twice, either as ABCABC or as AABBCC. It could also find the Least Common Multiple for cases such as 4 frames vs 6 frames (multiply each by respectively 3 and 2 to get 12 frames on both sides). How useful would that be?

Print this item

  Grand opening of my Gimp3-Tools site
Posted by: Ofnuts - 11-24-2024, 05:32 PM - Forum: Extending the GIMP - Replies (11)

Site is here. Not that much to see for now.

Time for a beer.

Print this item

  gimp-drawable-set-pixel giving unspecified error
Posted by: rgbellotti - 11-24-2024, 12:29 AM - Forum: Scripting questions - Replies (3)

I generally use some version of GIMP 2.10 on many different distros of Linux, most often Debian-based such Ubuntu, Parrot, Neon, etc

For the most part, I've done my scripting in Scheme because it was the only scripting language I could get to register properly, the python scripts would never load no matter what troubleshooting steps I tried.  This is fine though as Scheme is fun and still powerful enough to do just about whatever I need with the proper ideas.

Anyhow, the point being that I came across a hurdle with (gimp-drawable-set-pixel), which is the only function I know where you can explicitly define pixels values to place into an image.  And with the following script :

Code:
(define (test-set-pixel)
 (let* (
         ;; Create a new image and drawable
         (frame (car (gimp-image-new 10 10 RGB)))
         (drawframe (car (gimp-layer-new frame 10 10 RGB "Test Layer" 100 NORMAL-MODE)))
       )
   ;; Add the new layer to the image
   (gimp-image-insert-layer frame drawframe 0 -1)
   (gimp-drawable-fill drawframe TRANSPARENT-FILL)

   ;; Test setting a single pixel
   (let* (
          (x 0)
          (y 0)
          (new-pixel (vector 255 0 0 255)) ;; Red with full opacity
        )
     (gimp-message (string-append "Setting pixel at (" (number->string x) ", " (number->string y) ")"))
     (gimp-drawable-set-pixel drawframe x y 4 new-pixel))

   ;; Save the image for inspection
   (file-png-save 0 frame drawframe "test.png" "test.png" 1 9 1 1 1 1 1)
   (gimp-message "Test image saved.")
   (gimp-image-delete frame)
 )
)


I get the cryptic error message --  "Error: Procedure execution of gimp-drawable-set-pixel failed".  As a side note, I don't use python because it's been difficult for me to get Gimp to register python scripts in Linux, so seeing as how I have quite a few Scheme scripts started I'd like to try and resolve this fundamental problem of being able to place a pixel into an image, are there other functions that could give a similar functionality?  I've considered sampling pixels with (gimp-drawable-get-pixel) and then creating a new layer with 1x1 pixels, and then applying a paint to the new layer to match the color of sampled picture, and then mixed down a layer group of 320 x 240 layers (for a 320x240 pixel image for example) and then calling that a 'set pixel" alternative, but that would be an extreme work around.  Is there anything obvious that I'm overlooking?

Print this item

  script
Posted by: 1mike - 11-23-2024, 04:49 PM - Forum: Extending the GIMP - Replies (2)

Is there a script that runs auto white balance, stretch contrast and stretch contrast HSV, one after the other, with the default settings of each?
If not, how would I write one, I'm not a programmer.

Print this item

  How would you fix this glitched area?
Posted by: Muzician - 11-22-2024, 06:23 AM - Forum: General questions - Replies (5)

I assume the problem area is obvious, roughly 2/3 of the area of this section of a photo from about the tip of her right thumb down to the top edge of their kneecaps - the banding and smearing. 

Thanks!

[Image: photo-glitch.jpg]

Print this item

  The joys of AI in photo editing
Posted by: Ofnuts - 11-21-2024, 10:57 PM - Forum: Watercooler - Replies (3)

https://www.reddit.com/r/photography/com...ve_remove/

Print this item

  New user - layers question
Posted by: Allen - 11-21-2024, 07:52 PM - Forum: General questions - Replies (5)

Hi all. I am trying to do a photo collage (for a jigsaw) with one photo as the main background and then several others layered in and bordered which I will then eventually all flatten image for the final step. However when I copy in the smaller images as 'new layer', I can't seem to add a border to them even though the layer is selected. It adds the border to the main base layer photo not the one I have selected. I can rotate the smaller layers, soft focus etc, so they are definitely selected, it just seems to be the border than I can't add. I know I somehow managed to do this for a Christmas puzzle last year but I now can't figure it out. Help please!

Print this item

  My scaling box only works intermittently here is a video to show
Posted by: Holographic Breathing - 11-21-2024, 01:08 PM - Forum: General questions - Replies (3)

Sometimes my scaling box works in gimp and sometimes not. I'm sure I'm missing a button somewhere to press or something.
I've made a small video to show my problem – https://youtu.be/0-qWTTc4pKw

Any help will be very much appreciated, thank you in advance.

Print this item

  Transparent box above text box
Posted by: BrianO - 11-21-2024, 08:57 AM - Forum: General questions - Replies (5)

Hi,
When i add a Text layer, a transparent box appears just above. Unfortunately this box disturbs, how can i deactivate or move it?

Print this item

  3.0 Plugin/Script Repository?
Posted by: CtrlAltDel - 11-21-2024, 08:16 AM - Forum: Extending the GIMP - Replies (5)

As everyone is reworking/tweaking/creating plugins and scripts that function with 3.0, will there be a thread here dedicated to ones that have been successfully utilized with 3.0?

We all have a ton of plugins and scripts that need to function with 3.0, I would assume, and it would be insanity to start requesting specific ones and expect any prompt assistance with the changeover going on.

Will there be a single thread, maybe, where posters can follow a link for a specific listed plugin/script or maybe just download it from here after someone has been kind enough to list them here, whichever ones they may be?

For example, everyone could just come and check out the thread to see if anyone has converted/created/updated their favorite plugins/scripts without having to pressure anyone or aggravate anyone by asking.

Print this item