Shop Mobile More Submit  Join Login
GIMP Batch brush converter by kward1979uk GIMP Batch brush converter by kward1979uk
Automatically opens files from a selected folder and converts them into brush's for use with GIMP

works with the following file types

.jpg
.bmp
.xcf
.png
.gif

this script has been tested using windows and im not sure it will work with linux as i dont have linux installed.
Add a Comment:
 
:iconsixcats54:
sixcats54 Featured By Owner Mar 19, 2017
This won't open. I have Windows 10. ???
Reply
:icontheladarks66:
theladarks66 Featured By Owner Jan 26, 2017  Hobbyist Digital Artist
I have been looking for this type of software for a long time, and hope this will work for me. Thank you
Reply
:iconloquacious1:
Loquacious1 Featured By Owner Nov 3, 2015  Student General Artist
I need one like this to reverse the process and convert GIMP brushes to Photoshop for use in Painter 2016
Reply
:iconflareon-10000degrees:
me too. This came up on Google and is very misleading. I used Gimp for 10+ years and now trying to learn Photoshop for school.
Reply
:icontoto2014:
toto2014 Featured By Owner Aug 30, 2015
merci
Reply
:iconkumarkovuru:
Kumarkovuru Featured By Owner Sep 19, 2013
i have one custom script it is working as per my requirement, now i want to use that same script for different images at same time i mean to say batch script, can any one tel to me that what process i have to do?
Reply
:iconkumarkovuru:
Kumarkovuru Featured By Owner Sep 19, 2013
i have custom script and it is working as per my requirement, now i wast to use that script for different images at same time i mean to say batch script, can any one tel me what is the process?
Reply
:iconrobynsveil:
RobynsVeil Featured By Owner Sep 26, 2012  Hobbyist Digital Artist
Hi, I am running Ubuntu Linux 12.04. Not sure if you wanted to pursue this scm to work for Linux users: the script dialogue loads fine, allows me to navigate and do all data entry right to the last bit, the clicking [Convert] ? returned :

Error: (:1) set!: unbound variable: a

Running GIMP 2.8.2 - so I guess it should load abrs just fine. Just thought you'd like to know.
Cheers...
Reply
:iconpinkwoods:
PinkWoods Featured By Owner Sep 13, 2012  Hobbyist Interface Designer
This is the BEST script in the world! It has saved my... life! :XD: I LOVE and ADORE this script! :heart:
Reply
:icondiamond-dust4u:
Diamond-Dust4U Featured By Owner Aug 11, 2012
Thanks for this! Even though Gimp can now use photoshop brushes, it still comes in handy to batch multiple png to brushes ♥
Reply
:iconblazedee:
BlazeDee Featured By Owner May 20, 2012  Professional Digital Artist
you dont need this batch anymore cause with Gimp 2.6 you can easily load abr brushes into your brushset ;)
Reply
:iconlildragonbabe:
lildragonbabe Featured By Owner May 7, 2012  Hobbyist Digital Artist
For anyone trying to use this with the newest version of Gimp:
download the file
Copy :concheburart:'s code below
replace the file's code with that code
When saving, click 'save as' and make sure to save it as 'all file' type
Find Gimp in your computer system
Follow this path:
Gimp 2.0>share>gimp>2.0>scripts
Copy the brush converter file into this folder
start Gimp

*To use the converter*
Open Gimp
open the Filter menu
follow the second script-fu sub-menu until you reach the brush-batch command

You should save any images you want to convert to a brush in a separate folder
Reply
:iconsharisurineru:
Sharisurineru Featured By Owner Sep 24, 2012  Hobbyist General Artist
I have a question. I have never used a brush converter or even made brushes on my own. What code am i replacing and i downloaded it and it will not open at all so i dont even know if it is compatible with my laptop. Can you please help?
Reply
:iconlildragonbabe:
lildragonbabe Featured By Owner Sep 26, 2012  Hobbyist Digital Artist
Ahh, sorry, it's been a while since i did this. I will try to help though!

The mysterious 'code' I'm talking about is actually the programming of the file you downloaded! However, it's outdated. This was made many years ago for a much different version of Gimp, and so must be updated with a programming code that makes it compatible with newer Gimp versions.

If you open the file in notepad, you'll see what I mean. That's also the code you'll be replacing! Find Cheburart's post below mine (not too far down the page, you won't have to look for long) and copy-paste it over the original coding in this file. Make sure when you save that the file type drop down menu is listed as 'all files' and not '.txt'.

Now find wherever Gimp was installed in your computer. Follow the file path Gimp 2.0>share>gimp>2.0>scripts and place the modded brush converter script in this folder.

I can't be sure this will work with the very latest version of Gimp, since it isn't needed--all Gimp versions from 2.6 onward are compatible with photoshop (abr) brushes, which is what a program like this is mainly used for converting. If you're just looking to install a photoshop brush, follow the instructions in this video [link] , they're rather simple to follow.

If you have any other questions, or need help with the process of installing, feel free to ask me and I'll help you in any way I can!
Reply
:iconsharisurineru:
Sharisurineru Featured By Owner Sep 26, 2012  Hobbyist General Artist
Thanks a lot. It helps but now i have a problem with making brushes on the newest gimp version. I followed the instructions given my 1 other person on here but exporting does not seem to work for a saving method. i was trying to make a nerd glasses gimp brush to use as my logo for my own company i co own. can you help me with this? i would surly appreciate it
Reply
:iconlildragonbabe:
lildragonbabe Featured By Owner Sep 26, 2012  Hobbyist Digital Artist
Are you saving it as the proper extension type? Gimp brushes are the extension .gbr

Once the file is made, you have to put the brush in the correct folder to use it in gimp. The video I mentioned in the last comment has the instructions for where to put custom brushes.
Reply
:iconsharisurineru:
Sharisurineru Featured By Owner Sep 26, 2012  Hobbyist General Artist
i am saving it as gbr but i have tried every gimp brush folder i have and it will not work at all. i have tried this a total of 5 times in each folder, remaking the same glasses brush. its getting a bit tedious...
Reply
:iconlildragonbabe:
lildragonbabe Featured By Owner Sep 26, 2012  Hobbyist Digital Artist
You're not saving it to the right folder. The folder you need to save it in is in a complete different location from the ones you are looking at. Please watch the video.
Reply
:iconsharisurineru:
Sharisurineru Featured By Owner Sep 27, 2012  Hobbyist General Artist
ok. send me the link to the video please?
Reply
(1 Reply)
:iconneosailorcrystal:
NeoSailorCrystal Featured By Owner May 10, 2012  Student Digital Artist
I have a Mac, and I tried to download this, but it didn't work. And where's the 'code below'? Better question, what IS the 'code below'?
Reply
:iconlildragonbabe:
lildragonbabe Featured By Owner May 10, 2012  Hobbyist Digital Artist
I have no way of knowing if the script will work on the Mac, since it was programmed and tested on the pc. The script won't just magically work if you just double click after downloading.

The 'code' is the replacement script that :iconcheburart: left in a comment below mine. I accidently spelled his name wrong in my original comment. The original script was made to work with a much older version of GIMP, so the code below modifies it to work with the latest Windows version. Like I said, I don't know if this will work with the Mac version, since both are coded differently.
Reply
:iconvalkyrie-gaurdian:
Valkyrie-Gaurdian Featured By Owner Apr 19, 2012  Hobbyist General Artist
abr viewer.net :P
Reply
:icondarkslyer7raven:
darkslyer7raven Featured By Owner Apr 1, 2012  Professional Digital Artist
hi! I have windows 7 and when I use it its giving me this error

Brush-batch Message
Error while executing brush-batch:
Error: set!: unbound variable: a

help please
Reply
:iconsilentpainterghost:
SilentPainterGhost Featured By Owner Mar 31, 2012  Hobbyist General Artist
how do u use this?
Reply
:iconmspastel:
MsPastel Featured By Owner Feb 21, 2012  Hobbyist Interface Designer
Would you happen to know if there is a batch brush converter for Photoshop? xD I use both but I want to convert GBR to ABR fast!! :P
Reply
:iconthebarx:
thebarx Featured By Owner Feb 15, 2012
you save my ass
Reply
:iconcynfullpryde:
cynfullpryde Featured By Owner Dec 30, 2011  Professional General Artist
Thank you for this!
Reply
:iconcheyanne88:
Cheyanne88 Featured By Owner Dec 30, 2011  Hobbyist General Artist
this is all well & good but is there a converter from gimp to photoshop
Reply
:iconvalentinehearts:
ValentineHearts Featured By Owner Dec 21, 2011  Professional
I actually found a way to convert brushes without doing this.
I have GIMP 2.6
I went and downloaded my desired brush, then went to my documents.
I opened up my computer's main storage place, went to users, clicked on my name, opened up the GIMP file, went to brushes, opened and stopped.
I then went to my documents again (in a sperate an different opened folder tab), went to downloads and clicked on the brushes.
Keep in mind, if you just take the folder from the downloaded thing and put it in the GIMP folder stated above, it won't work.
You have to open the folder of the brushes, highlight all them, and then paste them in the GIMP folder with the brushes.
Tada. Restart your GIMP and there they are.
:c Sorry if it doesn't help, but that's how I just did mine. And it's my first time doing so!
Reply
:iconastana-lilani:
Astana-Lilani Featured By Owner Apr 16, 2012
Thanks a lot! It perfectly works!
Reply
:iconvalentinehearts:
ValentineHearts Featured By Owner Apr 16, 2012  Professional
:3 Welcome~
Reply
:iconmspastel:
MsPastel Featured By Owner Feb 21, 2012  Hobbyist Interface Designer
:D
Reply
:iconsundancewalker:
SundanceWalker Featured By Owner Dec 17, 2011
Great work!!
Reply
:iconemorik:
Emorik Featured By Owner Oct 22, 2011
I've never used a script before and this is what I get once I click download: [link] what do I do next? SOrry to bother you.
Reply
:iconcheburart:
cheburart Featured By Owner Sep 5, 2011  Student General Artist
All right people. Open the script with notepad, delete everything and paste this code:

(define (brush-batch load opt name filename spacing location)
(let* ( (a (cond
(( equal? opt 0 ) ".jpg" )
(( equal? opt 1 ) ".bmp" )
(( equal? opt 2 ) ".xcf" )
(( equal? opt 3 ) ".png" )
(( equal? opt 4 ) ".gif" )
))
(filelist (cadr (file-glob (string-append load "\\*" a) 1)))
(s 1)
(drawable 0)
(selection-bounds 0)
(sx1 0)
(sy1 0)
(sx2 0)
(sy2 0)
(swidth 0)
(sheight 0)
(newimage 0)
(newlayer 0)
(active 0)
(filename2 0)
)
(while (pair? filelist)
(let* (
(loadfile (car filelist))
(image (car (gimp-file-load RUN-NONINTERACTIVE loadfile loadfile)))
)


(gimp-image-flatten image)
(set! drawable (gimp-image-get-active-drawable image))
(if (= 1 (car (gimp-selection-is-empty image)))
(gimp-selection-all image))
(gimp-displays-flush)
(gimp-edit-copy (car drawable) )
(set! selection-bounds (gimp-selection-bounds image))
(set! sx1 (cadr selection-bounds))
(set! sy1 (caddr selection-bounds))
(set! sx2 (cadr (cddr selection-bounds)))
(set! sy2 (caddr (cddr selection-bounds)))
(gimp-image-delete image)
(set! swidth (- sx2 sx1))
(set! sheight (- sy2 sy1))
(set! newimage (gimp-image-new swidth sheight 0))
(set! newlayer (gimp-layer-new (car newimage) swidth sheight 1 "newlayer" 100 0))
(gimp-image-add-layer (car newimage) (car newlayer) 0)
(gimp-drawable-fill (car newlayer) 3)
(gimp-edit-paste (car newlayer) 0 )
(gimp-image-flatten (car newimage))
(set! active(gimp-image-get-active-drawable (car newimage)))
(gimp-desaturate (car active))
(gimp-image-convert-grayscale (car newimage))
(gimp-displays-flush)
(gimp-selection-all (car newimage))
(set! filename2 (string-append location "/" filename (string-append (number->string s))".gbr"
))
(file-gbr-save 1 (car newimage) (car active) filename2 (string-append name (number->string s)) spacing (string-append name (number->string s))))
(set! s (+ s 1))
(gimp-image-delete (car newimage))
(set! filelist (cdr filelist))))
)
(script-fu-register "brush-batch"
"<Toolbox>/Xtns/Script-Fu/Gimp-talk.com/Brush-batch..."
"turns a folder of files into brush's works with jpg, bmp, xcf, png and gif"
"Karl Ward"
"Karl Ward"
"April 2006"
""

SF-DIRNAME "Load from" ""
SF-OPTION "File Type"'("jpg" "bmp""xcf""png""gif")

SF-STRING "Brush Name" "name"
SF-STRING "File Name" "filename"
SF-ADJUSTMENT "spacing" '(25 0 1000 1 1 1 0)
SF-DIRNAME "SAVE TO FOLDER" "")

It works for all new versions of gimp.
Reply
:iconkward1979uk:
kward1979uk Featured By Owner Oct 17, 2011
Thanks for getting the script working again, i just havn't got the time to commit to scripting that i used to have
Reply
:icondoodledancer:
DoodleDancer Featured By Owner Aug 12, 2011
can someone PLEASE tell the GIMP artists (but not programmers) here in laymen terms what to do about the "unbound variable: a" error that happens when trying to convert .abr brushes to useable .gbr brushes I was trying to accomplish this by using the tutorial written by: by Jacob Dillon aka Droz928
Thanks
Doodledancer
Reply
:iconlolz-the-lollipop:
Lolz-the-Lollipop Featured By Owner Sep 4, 2011
GIMP can handle .abr brushes. I downloaded a PS brush for GIMP just this morning. GIMP owns in that way <3

~A
Reply
:iconmspastel:
MsPastel Featured By Owner Feb 21, 2012  Hobbyist Interface Designer
:D
Reply
:iconmrspeanuthead:
MrsPeanutHead Featured By Owner Jun 19, 2011
I have no idea how to use this, please may you message me a tutorial?
Reply
:iconotelosensual:
otelosensual Featured By Owner Oct 7, 2010
where is the f.. link??
Reply
:iconmaletiahalibel:
MaleTiaHalibel Featured By Owner Aug 30, 2010
Where is the download button or the link X_X Cause im confussed.
Reply
:iconnoyouhaha:
NoYouHaha Featured By Owner Jul 3, 2010
I kept getting a script error when i tried to run this
is there a certain program you need to run it?
Any information is most appreciated..
I do not know if it is a script error or if it's just me failing epicly
Reply
:iconkward1979uk:
kward1979uk Featured By Owner Jun 17, 2010
you need to open the script using a program such as notepad and save it as .scm into your script foldedr then when you start up gimp it should find it, but be warned this script does not work with the latest versions of gimp
Reply
:iconwownerdsrule:
WoWnerdsrule Featured By Owner Jun 15, 2010
How do u run this script u simply open it in notepad yes?
Reply
:iconwownerdsrule:
WoWnerdsrule Featured By Owner Jun 13, 2010
u use gimp to open it right? Please say that's what you use because windows will not recognize this blank script =3
Reply
:iconmichel-le-fou:
Michel-le-fou Featured By Owner May 31, 2010  Professional Writer
Alors, qu'est ce que ce passe! I could not open it!
Reply
:icondarkgardenphoto:
DarkGardenPhoto Featured By Owner Apr 20, 2010
I will use this to issue my brush packs for GIMP thanks alot.
Reply
:iconi-was-so-blind:
i-was-so-blind Featured By Owner Mar 6, 2010  Student Traditional Artist
Does this work with Mac OS?
Reply
:iconspirou4d:
Spirou4D Featured By Owner Jan 27, 2012  Professional Interface Designer
[link]
Non regarde là, il y a une autre version au format Java qui travaille sur toutes autres OS que windows cad Linux, MAc ou pour les anciens: COMMODORE 64 peut-être!

[link]
Reply
Add a Comment:
 
×




Details

Submitted on
April 1, 2006
File Size
2.3 KB
Thumb

Stats

Views
123,081 (2 today)
Favourites
267 (who?)
Comments
227
Downloads
54,804
×