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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 4,577
» Latest member: RaymondBut
» Forum threads: 7,452
» Forum posts: 40,729

Full Statistics

Latest Threads
Macroglossum stellatarum
Forum: Watercooler
Last Post: Tas_mania
3 hours ago
» Replies: 1
» Views: 46
Missing script-fu "refres...
Forum: Gimp 2.99 & Gimp 3.0
Last Post: rich2005
6 hours ago
» Replies: 10
» Views: 308
processes in Whitelist
Forum: OSX
Last Post: rich2005
Yesterday, 09:45 AM
» Replies: 5
» Views: 181
Digikam: photo management...
Forum: Other graphics software
Last Post: denzjos
Yesterday, 06:53 AM
» Replies: 7
» Views: 4,589
GIMP 3.04 opens with wind...
Forum: Windows
Last Post: SteveH
07-01-2025, 11:47 PM
» Replies: 0
» Views: 74
AIGoR - Artificial Image ...
Forum: Other graphics software
Last Post: rich2005
07-01-2025, 12:12 PM
» Replies: 10
» Views: 3,120
Can't see GIMP windows
Forum: Gimp 2.99 & Gimp 3.0
Last Post: Tankred
07-01-2025, 11:48 AM
» Replies: 3
» Views: 258
Windows save
Forum: General questions
Last Post: sallyanne
07-01-2025, 06:27 AM
» Replies: 3
» Views: 343
Trying to append part of ...
Forum: General questions
Last Post: Denarius
06-30-2025, 12:26 PM
» Replies: 5
» Views: 332
clone tool
Forum: General questions
Last Post: sallyanne
06-30-2025, 12:38 AM
» Replies: 6
» Views: 413

 
Question Blur, change mode, save as
Posted by: tkemmere - 11-21-2022, 09:50 AM - Forum: Scripting questions - Replies (8)

Hi,

I have a process that I need to perform multiple times in the future, so I started looking into the Script-fu documentation and tutorial on gimp.org. I can sort of follow the explanations and if I would keep at it for a day or so I might be able to get somewhere. (Edit: Actually, I'm not sure if I could manage it).

I decided to turn to this forum and ask the open question whether anybody (who is obviously infinitely more experienced  Smile ) is willing to get me going with a basic script. You can take this question two ways:
Arrow He's just being a lazy bum and let us do the work... (Please then let me know if a question like this is 'not done').
Arrow Oh, that's easy, I'll put something simple down, then he can take it from there and tweak and learn Script-fu...

My objective is to create an image in 5 shades out of a black and white picture. But before turning it into the shades, it needs to be Gaussian blurred to an X amount. The amout of blur depends on the picture. So the solution is trial and error. I do GB 10, 15, 20, 25, 30. Then I look at the results to select the best one.

Imagine the base-image is opened. The repetitive actions then are:
- Blur picture Gaussian blur 10;
- Image > Mode > Indexed 5, optimal palet, max colours 5;
- Save as pic10.jpg Same folder No compression;
- Undo;
- Undo;
- Blur picture Gaussian blur 15...
and so on.

Is there someone out there willing to give it a shot? I will also continue reading/working on it.

Thanks!  Shy Thomas.

PS. I'm using GIMP 2.10.22.


An overview of the work and that I can come up with myself.

The first step would be to set a Range of variables for the blur. Like {10, 15, 20, 25, 30}. I have no idea how to do that.

Then the first of the Range is loaded into variables 'X-value' and 'Y-value'. I have no idea how to do that.

Start logging steps to undo into a group. This is what I found to record the two steps thereafter into a group:
(gimp-image-undo-group-start image?)

Then comes the Blur script step. That I found:
(plug-in-gauss run-mode image drawable horizontal vertical method)
(plug-in-gauss 1 image? drawable? X-value Y-value 1)

Then comes the change image mode. That I found too:
(gimp-image-convert-indexed image dither-type palette-type num-cols alpha-dither remove-unused palette)
(gimp-image-convert-indexed image? 0 0 5 TRUE TRUE ignored?)

Stop logging undo steps.
(gimp-image-undo-group-end image?)

Next is Save as.
(file-jpeg-save run-mode image drawable filename raw-filename quality smoothing optimize progressive comment subsmp baseline restart dct)
(file-jpeg-save 1 image? drawable? Pic+X-value+.jpg Pic+X-value+.jpg 1 0 0 0 no_comment 4 0 0 dct?)

The script step to perform an the undo group. I couldn't find.
Something like (gimp-image-undo-now! image?)

Or maybe Undo-group-start and end are not needed, because at this point one can just do Gimp-Undo twice. But I can't find Gimp-Undo.

Increase variables 'x-value' and 'y-value' to next in Range. I have no idea how to do that.

Exit if Range is finished. I have no idea how to do that.

Run from the top. I have no idea how to do that.

Print this item

Photo Isometric images for blog - Help or Point to Online Tutorial
Posted by: paulsharpe85 - 11-21-2022, 01:52 AM - Forum: General questions - Replies (2)

Hey everyone,

I've been trying to figure out how to create blog cover images in the style of a website theme that I purchased but haven't had any luck.

Can anyone show me or point me to an online tutorial for creating images like these ??  I know they're SVGs with sortof isometric shapes and gradient backgrounds, but I can't put it all together.  

   

   

Thank you!

Print this item

  Editing music scores help please.
Posted by: Retired - 11-20-2022, 06:34 PM - Forum: General questions - Replies (6)

Hi,

For the last two days I've gone round in circles using both Gimp & Irfanview in an attempt to modify violin music scores.

   

I'm 75 and just learning to play my violins in my small music studio; the sheet music scores are placed on a bench music stand but my eyesight isn't up to reading them whilst playing a violin hence I want to modify by deleting sections whilst enlarging the sections remaining to fit an A4 page when printed.

   

I can delete the unwanted sections as seen but then I get stuck wasting no end of time trying to enlarge the remaining sections to 8" x 1.75" and stacking them to fill the new spaces. I can enlarge each but don't know how to move them as wanted. I'm also having problems printing the 8 x 1.75 using my HP Laserjet P1102W mono printer. I want to print in Portrait then I can place three pages onto the stand meaning dividing each line but I could also print in landscape. I'd prefer to use Gimp.

   

My studio in June; I've now got four violins and a Balalaika plus lots of recording gear; all I need now is to sort out the music scores to suit me then I can concentrate on learning to read music and play my violins.

Any help will be most welcome.

Kind regards, Colin.

Print this item

  Template window is empty
Posted by: charlie84 - 11-20-2022, 05:34 PM - Forum: OSX - Replies (3)

GIMP 2.10.32 on macOS High Sierra, Template window contains nothing, it is empty. What can I do? Thank you.


[Image: Schermata-2022-11-20-alle-18-28-07.png]

Print this item

  How to precisely cut texture to match alpha channel?
Posted by: remunaw12 - 11-20-2022, 11:03 AM - Forum: General questions - Replies (5)

Hi.
First sorry if my word choise is confusing, Im an amateur so I might not understand some term.
Im trying to edit game asset. How do I make a cut on texture to precisely match the alpha channel shape? Using fuzzy tool can be done but it only make a solid cut, some semi transparent will made into solid cut.
In layman's term, how do I make alpha channel as a cast and use it to cut a flat texture so that it will have the exact same transparency?



Edit: Some illutration what Im trying to do.
[Image: How-to.jpg]

Print this item

  A gif output is always larger?
Posted by: 28QiGkMfTYDN3dP9tn1S - 11-20-2022, 04:53 AM - Forum: General questions - Replies (2)

There is a gif file, when I input it in GIMP and output it as another gif, it is always obviously larger than the input gif. Why? I tried some methods to optimize it.

Sorry I am not able to add an attachment.

Print this item

  gimp-file-load color profile
Posted by: 6vfde - 11-20-2022, 01:39 AM - Forum: Scripting questions - Replies (4)

Hi!

I'm new to the forum and scripting, and have little GIMP experience.

I am working on my first python-fu script, which opens jpg files, changes them, and saves to new jpg files.

How one would load a jpg file while preserving its original 'sRGB' color space? When I open the file through the GUI, GIMP asks me if I want to keep it or convert to 'GIMP built-in sRGB'. However, when my script loads the file with pdb.gimp_file_load(), It just converts it automatically.

I'm running GIMP 2.10 on Debian.

Thanks a lot!

Print this item

  Overwriting 'software' EXIF tag
Posted by: 6vfde - 11-20-2022, 01:27 AM - Forum: Scripting questions - Replies (2)

Hi!

I'm new to the forum and scripting, and have little GIMP experience.

I am working on my first python-fu script, which opens jpg files, changes them, and saves to new jpg files.

Is there a way to save a file with pdb.file_jpeg_save(), while overwriting the 'software' exif tag?

Even though I set the tag with pdb.gimp_image_set_metadata(), the resulting file has 'GIMP 2.10.32' as its value.

I'm running GIMP on Debian.

Thanks a lot!

Print this item

  Need some help
Posted by: saih_tam - 11-19-2022, 04:12 PM - Forum: General questions - Replies (17)

Hi

I'm sorry for my bad English. I am really incompetent in advance Gimp using.

I would like to modify the "down right corner" symbol of 'Note_Cymbal_Yellow_Sizzle.png' in order to look like the 'Note_Cymbal_Miss_Sizzle.png' symbol but I don't know how to do that. I would copy/paste the "down right corner" symbol in the other file to obtain the 3 other corners.

I imagine it's a basic manipulation for an expert.

Could someone do that for me please ?



Attached Files Image(s)
       
Print this item

Lightbulb Lightbulb moment
Posted by: sallyanne - 11-19-2022, 03:08 AM - Forum: Gimp-Forum.net - Replies (3)

No idea if this has been mentioned before or not. Could you put all the solved questions under another topic so people can look there first - like a FAQ or something?

Print this item