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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 4,944
» Latest member: Nafeesa
» Forum threads: 7,701
» Forum posts: 41,876

Full Statistics

Latest Threads
"Mouseclick" is not recor...
Forum: General questions
Last Post: Ofnuts
Yesterday, 10:07 PM
» Replies: 3
» Views: 288
New to Gimp
Forum: General questions
Last Post: rich2005
Yesterday, 08:47 PM
» Replies: 1
» Views: 109
GIMP 2.10 or 3 stuck load...
Forum: General questions
Last Post: theelf
Yesterday, 05:09 PM
» Replies: 5
» Views: 288
What exactly tutorials ar...
Forum: General questions
Last Post: rich2005
Yesterday, 12:34 PM
» Replies: 3
» Views: 232
Avatar not showing up
Forum: Gimp-Forum.net
Last Post: Ofnuts
Yesterday, 08:49 AM
» Replies: 8
» Views: 4,114
Simulating paint my hous...
Forum: General questions
Last Post: sallyanne
Yesterday, 12:22 AM
» Replies: 1
» Views: 175
Edits Saving wrong
Forum: General questions
Last Post: PaulM
11-14-2025, 10:36 PM
» Replies: 6
» Views: 360
Random Clone
Forum: General questions
Last Post: rich2005
11-14-2025, 07:20 PM
» Replies: 1
» Views: 168
How to get G'MIC within G...
Forum: General questions
Last Post: Tas_mania
11-13-2025, 08:42 PM
» Replies: 5
» Views: 543
Text Editor hardly ever w...
Forum: General questions
Last Post: sallyanne
11-13-2025, 09:23 AM
» Replies: 5
» Views: 486

 
Scheme I need help to declare a variable or a function in scheme
Posted by: PixLab - 12-07-2023, 02:48 AM - Forum: Scripting questions - Replies (5)

I'm trying to set a variable or a function but nothing is working, I always got "Illegal function", or "unbound variable", or whatnot

A screenshot about what I try to do
Having a variable will allow me to only input the variable in the other lines (in red), unless my thinking is wrong (that's also something to take in count).
   

Here is the code, if I understood (while (> i 0) where i is a variable and I try to catch when i is equal to 1
How can I catch that number to change the variable depending that number?

Code:
(while (> i 0)
      (set! image (vector-ref (cadr (gimp-image-list)) (- i 1)))
      (set! newFileName (string-append inDir
              pathchar inFileName
              (substring "0000000" (string-length
              (number->string (+ inFileNumber i))))
              (number->string (+ inFileNumber i)) saveString))

;;;;;;;;;;;;;;;;;  START to set my variable isInteractive ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

     (set! isInteractive (if ((equal? i 1) RUN-INTERACTIVE)
                                 (else (RUN-WITH-LAST-VALS))))

;;;;;;;;;;;;;;;;;;;;;;;;;   END ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

      (cond
        ((equal? saveString ".webp")
                            
           (file-webp-save2 isInteractive ;;;; << once set isInteractive should switch to RUN-INTERACTIVE or RUN-WITH-LAST-VALS depending the value of i
                      image
                      (car (gimp-layer-new-from-visible image image "export"))
                      newFileName
                      newFileName
                      1    ; preset 0=default 1=pic 2=photo 3=drawing 4=icon 5=text
                      0    ; Use lossless encoding (0/1)
                      90   ; Quality of the image (0 <= quality <= 100)
                      90   ; alpha-quality  0<>100
                      0    ; Use layers for animation (0/1)
                      0    ; Loop animation infinitely (0/1)
                      0    ; Minimize animation size (0/1)
                      0    ; Maximum distance between key-frames (>=0)
                      0    ; Toggle saving exif data (0/1)
                      0    ; Toggle saving iptc data (0/1) works only if save XMP data is also checked ?
                      0    ; Toggle saving xmp data (0/1)
                      0    ; Toggle saving thumbnail (0/1)
                      0    ; Delay to use when timestamps are not available or forced
                      0    ; Force delay on all frames (0/1)

          ))

I did try with (cond instead of (if I tried also starting with (begin (set! nothing is working, and let's face it, I'm also overwhelmed by the number of parenthesis Huh

Print this item

  availability status: sync pending
Posted by: bmatsalla - 12-07-2023, 01:33 AM - Forum: General questions - Replies (2)

Anything I create with Gimp 2.10.36 has two curved arrows in a circle and says "availability status: sync pending"

How do I get rid of this?

Thanks

Print this item

Scheme Export all opened images in GIMP at once
Posted by: PixLab - 12-06-2023, 02:34 PM - Forum: Extending the GIMP - Replies (18)

Inspired by Rich2005 over-there >  https://www.gimp-forum.net/Thread-Tip-to...es-at-once which he literally wrote the WebP part

Use case: You got a bunch of images in GIMP and you have finished to work on them, and want to export all at once in JPG or WebP or PNG, or TIFF or even BMP
Or another use case: You did slice your image using guides with Image > Slice Using Guides with a grid of 10x10 and you got 100 opened images, go to export them one by one...  Big Grin

You will want this with all those images opened (un-zip, then put the .scm file in the scripts folder)
.7z   sg-save-all-open-a.scm.7z (Size: 2.29 KB / Downloads: 1341)

Now you just go to File > Export All Images As... Chose your folder, Chose the type of image, Give a generic name, and a start number (auto-numbering)

   

What changed with the original ?
A lot, like A LOT.
Export the full image and not just a layer.
Once you chose where to save and the file type, you can get a coffee or a beer, the script will care for the other million opened images and no question asked by GIMP.
No default settings from GIMP,  as before the exported JPG was bigger than the original,

Thus now you can set your settings in the code, I did comment ALL for > JPG, WebP, PNG and TIF
   

Print this item

  Save export settings
Posted by: bcourcet - 12-05-2023, 07:01 PM - Forum: General questions - Replies (6)

Hello,

is there a way to save export settings ?

I always export to WEBP and i always use the same settings. But selecting the different settings (file type, extension, quality etc...) takes more time and clicks, and scrolls than the actual export. So is there a way to save those settings ?

Thanks for your help

Print this item

  How to automatically subscribe to a posting in this forum?
Posted by: pstein - 12-05-2023, 10:21 AM - Forum: Gimp-Forum.net - Replies (1)

Currently the default for my postings is "NO subscribe".

How can I tell the forum software to always automatically subscribe me for email notifications of my new postings?

I found no user preferences section here.

Print this item

  "Undo" as a clickable toolbar icon?
Posted by: pstein - 12-05-2023, 10:17 AM - Forum: General questions - Replies (5)

Currently the only way to undo the previous action() is to select menu "Edit"-->"Undo"

I hate menus. I prefer toolbars.

Is there a way of creating something like a toolbar button for "undo"?

Print this item

  How to change mouse wheel to zoom in and zoom out (instead of scrolling)?
Posted by: pstein - 12-05-2023, 10:16 AM - Forum: General questions - Replies (4)

How can I assign a new function the mouse wheel?

In future using the mouse wheel the current picture should be zoomed in or out.

Print this item

  Installing refocus
Posted by: harshamutu - 12-05-2023, 08:26 AM - Forum: General questions - Replies (8)

I am not that tech-savvy. But using Gimp happily for enhancing my photographs. Wish to install refocus. I downloaded the package and unzipped. Found the plugin folder to place the extract. It does not work perhaps I am missing something. I do not know how to run ./configure or something. I appreciate if someone could help me in this. 

Thanks and Regards

Print this item

  Open Image Dialog Location Field Slashes
Posted by: Punchcard - 12-05-2023, 03:43 AM - Forum: General questions - Replies (12)

Windows 7
Gimp 2.10.36

Protocol:
  Click File/Open...
  Click the "Type a file name" button
  Enter a file path in the Location field
  The path has forward slashes (/), not the Windows back slash (\).
  Gimp ignores.
  Change the forwards to backs.
  Gimp accepts.

Is that worthy of a bug report?

Print this item

  Change Silver Jewellery to gold
Posted by: awjeweller - 12-04-2023, 06:39 AM - Forum: General questions - Replies (7)

My first post here...

I am a jeweller and post pics of the jewellery i make on my website, ebay etsy etc.

I have had some success with changing the colours of stones using gimp... garnet to Amethst, sapphire , Rubt etc.

But I'm trying to work out how to change silver jewellery into gold.

If anyone can point me to a tutorial I would be grateful.

Here is a photoshop tutorial.. I need the same thing for GIMP

https://www.youtube.com/watch?v=R6PB-y1n...jaGraphics

[Image: il_794xN.4426435227_fn2x.jpg]

Print this item