Welcome, Guest |
You have to register before you can post on our site.
|
Latest Threads |
Dodge and burn plug-in fo...
Forum: Extending the GIMP
Last Post: chuckhenrich
7 hours ago
» Replies: 2
» Views: 198
|
Is there any version wher...
Forum: Older Gimp versions (2.8, 2.6....)
Last Post: rich2005
Today, 08:54 AM
» Replies: 5
» Views: 924
|
Batch export all opened i...
Forum: Extending the GIMP
Last Post: rich2005
Yesterday, 07:58 PM
» Replies: 24
» Views: 14,339
|
cannot find plu-gins in g...
Forum: General questions
Last Post: πk2
Yesterday, 08:46 AM
» Replies: 3
» Views: 454
|
ora format... it really w...
Forum: General questions
Last Post: mrkid
09-17-2025, 10:57 PM
» Replies: 3
» Views: 406
|
.pcd files issue?
Forum: OSX
Last Post: T1-Survivor
09-17-2025, 09:45 PM
» Replies: 3
» Views: 654
|
Simplifying a path
Forum: Extending the GIMP
Last Post: Ofnuts
09-17-2025, 03:17 PM
» Replies: 40
» Views: 35,810
|
"Gimp 2.99 & Gimp 3.0" fo...
Forum: Gimp-Forum.net
Last Post: Ofnuts
09-17-2025, 03:12 PM
» Replies: 0
» Views: 381
|
Coincidence or not, that ...
Forum: Watercooler
Last Post: Krikor
09-17-2025, 12:57 PM
» Replies: 2
» Views: 1,389
|
How do you make text circ...
Forum: General questions
Last Post: Krikor
09-17-2025, 12:40 PM
» Replies: 13
» Views: 4,095
|
|
|
Scramble a picture |
Posted by: S_H - 10-23-2021, 02:32 PM - Forum: General questions
- Replies (2)
|
 |
Hi,
I'm looking for an automated way to scramble a batch of images.
That is, to automate this process on a folder of images:
1. upload an image
2. slice the image into 9 equal pieces (the images are not in the same size)
3. completely shuffle the pieces order (such that upper left must not stay in upper left) without changing the image size
4. save
I found ways to do step 2, but because my images are not in the same size I don't know how to batch it.
I Particularly struggle with step 3.
Thanks a lot for your help
|
|
|
shifting gradient colors ? |
Posted by: denzjos - 10-22-2021, 05:38 PM - Forum: General questions
- Replies (10)
|
 |
Is there existing a plugin/script that can shift a gradient by x steps? Let's take a gradient with 256 colors and I want to shift the gradient colors by 2 steps. Then all colors move 2 steps to the right (or left) and colors 255 / 256 become colors 1 and 2.
|
|
|
canvas prints |
Posted by: tez06 - 10-22-2021, 11:13 AM - Forum: General questions
- Replies (6)
|
 |
Hi everyone, I love gimp and all its functions, but can anyone one advise me how to do canvas wrap with mirror edges, i have gimp version GIMP 2.10.28 any help much appreciated :-)
|
|
|
Let us say with petals |
Posted by: Gimphried - 10-21-2021, 09:15 PM - Forum: Scripting questions
- Replies (2)
|
 |
1. Let us say with petals
Make Flower has been written in Script-Fu by Daniel Bates in 2007.
You can download the free open source Flower_Generator_Script_by_Insanity_Prevails.scm
in the SamRocketMan's github reposity.
Open the .scm script in the free editor Notepad++.
script-fu-register in line 316 has strange NUL characters.
Into the bargain, nowadays, the registration is in two steps. We need to indicate the Gimp menu to call this script in an additional call:
Code:
(script-fu-menu-register "script-fu-make-flower" "<Image>/Filters/Render/Make Flower/")
However don't do it! We do not need to overload the Gimp Graphic User Interface (GUI) with additional menus that are not used daily.
We can call directly make-flower in the Script-Fu console of Gimp 2.10.28 without any registration.
1. In Notepad++, click in the beginning of the line 12 before the opening parenthesis without selecting anything.
2. Press the Notepad++ shortcut Ctrl+Alt+B.
Notepad++ automatically selects the entire function make-flower from line 12 to line 312.
This means that of course the parenthesis are well balanced.
3. Press Ctrl+C in Windows to copy the function in the clipboard.
4. Run Gimp.
5. Gimp menu Filters > Script-Fu > Console
;-> "Welcome to TinyScheme" appears in the top of the Script-Fu console.
6. Paste the content of the clipboard in the input area of the Script-Fu console above the Help button.
Press ENTER
;-> Script-Fu replies by the name of the function:
make-flower
This means that there is not any errors of syntax!
7. Copy in the clipboard by Ctrl+C the following call of the function with all parameters:
Code:
(make-flower 500 2 2 30 1 5 '(230 120 210) '(170 50 150) '(170 170 50))
Press ENTER to run the TinyScheme function.
;->
Oops:
Code:
Error: Bad syntax of binding spec in let* : ((theImage) (theActive) (base-layer) (flower-layer) (petal-layer) (petal2-layer) (petal3-layer) (petal4-layer) (petal5-layer) (petal6-layer) (shade-layer) (map-layer) (varX1) (varY1) (varX2))
8. In Notepad++, select the Let*'s local variables from line 26 to 46:
Code:
(theImage)
(theActive)
(base-layer)
(flower-layer)
(petal-layer)
(petal2-layer)
(petal3-layer)
(petal4-layer)
(petal5-layer)
(petal6-layer)
(shade-layer)
(map-layer)
(varX1)
(varY1)
(varX2)
The initial value is missing for each local variable. Fortunately, they are all integers.
10. To fix the issue, Notepad++ menu Search > Replace...
11. In the dlgbox "Replace", 2nd tab "Replace",
Find what: ")"
Enter the closing parenthesis without the double quotes.
Replace with: " 0)"
Enter a space separator before the initial value, then the initial value 0 and the closing parenthesis.
Do not enter the double quotes.
Check the option [x] in selection
Press the Replace All button
The expected result must be:
Code:
(theImage 0)
(theActive 0)
(base-layer 0)
(flower-layer 0)
(petal-layer 0)
(petal2-layer 0)
(petal3-layer 0)
(petal4-layer 0)
(petal5-layer 0)
(petal6-layer 0)
(shade-layer 0)
(map-layer 0)
(varX1 0)
(varY1 0)
(varX2 0)
12. Repeat steps 1-7
;-> The script draws the pink flower with 8 petals on 500x500 pixels.
make-flowerPetal8.webp (Size: 6.96 KB / Downloads: 339)
The Layer window shows the following layers:
- Shading
- Centre Shading
- Centre
- Flower
- Background
|
|
|
|