| Welcome, Guest |
You have to register before you can post on our site.
|
| Latest Threads |
How to fine-tune the ligh...
Forum: General questions
Last Post: IndiePubber
12 minutes ago
» Replies: 0
» Views: 3
|
Remove error created Temp...
Forum: General questions
Last Post: JB10
1 hour ago
» Replies: 5
» Views: 187
|
apply a certain gradient ...
Forum: General questions
Last Post: saint_m
4 hours ago
» Replies: 8
» Views: 1,353
|
Gimp 3.2.4 NO Color Theme...
Forum: General questions
Last Post: corawilliamlee
Today, 08:49 AM
» Replies: 1
» Views: 658
|
Most accurate way to colo...
Forum: General questions
Last Post: IndiePubber
Today, 06:58 AM
» Replies: 8
» Views: 680
|
Theming 3.2 ( in my case ...
Forum: Installation and usage
Last Post: bluedxca93
Yesterday, 01:24 PM
» Replies: 6
» Views: 281
|
How would I be able to be...
Forum: General questions
Last Post: sallyanne
Yesterday, 12:29 PM
» Replies: 5
» Views: 258
|
Color picker doesn't refl...
Forum: General questions
Last Post: CmykStudent_
06-23-2026, 07:20 PM
» Replies: 6
» Views: 1,565
|
gimp removes transparency...
Forum: General questions
Last Post: saint_m
06-23-2026, 12:48 PM
» Replies: 5
» Views: 8,578
|
Converting python plugin-...
Forum: Gimp 2.99 & Gimp 3.0
Last Post: DerPit
06-23-2026, 09:36 AM
» Replies: 67
» Views: 58,528
|
|
|
| Mass blur images via Python-Fu |
|
Posted by: everetttt - 08-14-2023, 05:26 PM - Forum: Scripting questions
- Replies (2)
|
 |
Hello, I am wanting to streamline a process to blur every image (all jpegs) in a directory that I have, as doing it all manually would be extremely time consuming. I have found many people using Python-Fu, and so I believe to add my scrip to GIMP I would open any file, Filters -> Python-Fu -> Console and enter code, of which I have the following
Code:
from gimpfu import*
def plugin_blur_post(timg, tdrawable):
new_layer = pdb.gimp_layer_copy(tdrawable, 0)
timg.add_layer (new_layer, 0)
pdb.plug_in_gauss_iir(timg, new_layer, 25, True,True)
gimp.pdb.file_jpeg_save(timg, new_layer, (car (gimp-image-get-filename)) + "_blurred.jpg", "raw_filename", 0.85, 0, 0, 1, "", 3, 0, 0, 0)
register(
"python_fu_blur",
"blur-posterize",
"*",
"*",
"*",
"*",
"<Image>/Tools/blur-posterize...",
"*",
[],
[],
plugin_blur_post)
main()
This, I hope, adds a gaussian blur with both X and Y values of 25, then saves as a new jpeg, with the name being currentName_blurred.jpg
Unfortunately, this just crashes the console when I copy paste it all in.
Finally, as I want to apply this to all files in my directory (including images within folders), I believe I have to run a similar command as found here. So, I believe I would navigate to the folder and run the command
Code:
gimp -i -b '(python_fu_blur "*.jpg" 5.0 0.5 0)' -b '(gimp-quit 0)'
As the code doesn't yet compile, I can't run the command, but in Windows Powershell gimp is not even recognized as a name. I've tried both this and this but neither allow me to call gimp.
I realize this is effectively three separate errors in one post and I do apologize for that. Thank you for any help offered, I really do appreciate it.
|
|
|
| patterns |
|
Posted by: ibohme - 08-12-2023, 10:22 PM - Forum: General questions
- Replies (2)
|
 |
Hi
I am having trouble saving patterns i have made, i have read a lot of post of how other people fixed their problem but nothing seems to work, funny thing is i saved one and it worked then i tried to save another and now neither work. When i try to save i have to click all these in order to get to the patterns folder
Saving: Local disk gimp 2 share gimp 2.0 patterns
i have also clicked and selected show hidden folders
i have refreshed and restarted gimp
but the patterns still dont show on the dialog box however they are in the patterns folder i have also tried to put them into a new folder and not even that works
|
|
|
|