GIMP Chat http://gimpchat.com/ |
|
FROM GBR FILE TO ABR FILE http://gimpchat.com/viewtopic.php?f=11&t=20382 |
Page 1 of 1 |
Author: | gimper66 [ Thu May 11, 2023 9:12 am ] |
Post subject: | FROM GBR FILE TO ABR FILE |
I would like to convert a gbr file from my gimp brushes to an abr file so that I can also use the brush in photoshop. how can i simply convert that, can anyone give me the correct way. thanks in advance, gimper66 |
Author: | AlSchemist [ Thu May 11, 2023 4:28 pm ] |
Post subject: | Gimp brush .gbr to Adobe PhotoShop .abr? |
Hello Gimper66 Gimp brush .gbr to Adobe PhotoShop .abr? PhotoShop .abr could be read ![]() However, you need PhotoShop to save a brush in the proprietary format .abr ![]() Reference: "How to create .abr without using PS?" answered by rich2005 in 2020. Attachment: OpenBrushAsImage.png [ 110.5 KiB | Viewed 1357 times ] In Gimp Brush window (Shift+Ctrl+B):
In PhotoShop:
|
Author: | AlSchemist [ Thu May 11, 2023 4:33 pm ] |
Post subject: | Gimp brush in the Script-Fu console |
Gimp brush in the Script-Fu console Gimp menu "Filters" > "Script-Fu" > "Console" Alt+R S C ![]() Copy and paste the following in the input box of the Script-Fu console. Note the regular expression suffix ".*" meaning match everything in the filename without the file extension. Code: Select all (gimp-brushes-get-list "Chalk.*") Gimp Script-Fu could reply: (5 ("Chalk 02 copy" "Chalk-02-copy" "Chalk 01" "Chalk 02" "Chalk 03")) The first copy has been created from .gbr while the 2nd could be a .gih Chalk-02-copy.gbr: 52 Kb grayscale black on white background Chalk-02-copy.gih: 259 Kb colored brush having a little red triangle in lower right corner Chalk-02-copy.png: 18 Kb compressed grayscale Retrieve width, height, mask-bpp, color-bpp of the named brush: Code: Select all (gimp-brush-get-info "Chalk 02 copy") (230 230 1 0) To get all brushes, indicate the empty string: Code: Select all (gimp-brushes-get-list "") (60 ("Clipboard Image" "Clipboard Mask" "Chalk 02 copy" "Chalk-02-copy" "1. Pixel" "2. Block 01" "2. Block 02" "2. Block 03" "2. Hardness 025" "2. Hardness 050" "2. Hardness 075" "2. Hardness 100" "2. Star" "Acrylic 01" "Acrylic 02" "Acrylic 03" "Acrylic 04" "Acrylic 05 #2" "Animated Confetti" "Bristles 01" "Bristles 02" "Bristles 03" "Cell 01" "Cell 02" "Chalk 01" "Chalk 02" "Chalk 03" "Charcoal 01" "Charcoal 02" "Charcoal 03" "Confetti" "GEGL goat" "Grass" "Grunge 01" "Hatch Pen 01" "Oils 01" "Oils 02" "Oils 03" "Pencil 01" "Pencil 02" "Pencil 03" "Pencil Scratch" "Pixel (1x1 square)" "Smoke" "Sparks" "Splats 01" "Splats 02" "Sponge 01" "Sponge 02" "Stone Work 01" "Texture 01" "Texture 02" "Texture Hose 01" "Texture Hose 02" "Texture Hose 03" "Vegetation 01" "Vegetation 02" "Vine" "Wilber" "z Pepper")) The brushes of the user called "YourUserName" are in: Code: Select all C:\Users\YourUserName\AppData\Roaming\GIMP\2.10\brushes The folders of brushes installed with Gimp can be retrieved with the following function: Code: Select all ; Retrieve the list of subfolders in strPath Code: Select all (list-folder (string-append gimp-data-directory DIR-SEPARATOR "brushes")) ("Basic" "Fun" "gimp-obsolete-files" "Legacy" "Media" "Sketch" "Splatters" "Texture") ![]() |
Author: | AlSchemist [ Thu May 11, 2023 4:37 pm ] |
Post subject: | Advanced Gimp Script-Fu or Python script about brushes |
Advanced Gimp Script-Fu or Python script about brushes There are mainly script to save .gbr or use brush: ![]()
However, I did not test these scripts. Consider them as a starting point to script brushes. How to export a brush as .png in Script-Fu? You need to install KodiSave.scm or copy and paste the function PathSplit. Code: Select all ; (Export-gbr-to-png "C:\\Tool\\Gimp\\forum\\GimpChat\\Brush\\Chalk-02-copy.gbr") In Windows, in the Script-Fu console, if your brush Chalk-02-copy.gbr is in C:\Tool\Gimp\forum\GimpChat\Brush, run: Code: Select all (Export-gbr-to-png "C:\\Tool\\Gimp\\forum\\GimpChat\\Brush\\Chalk-02-copy.gbr") Gimp Script-Fu will reply: Export-gbr-to-png SUCCESSFULLY exported "Chalk-02-copy".gbr to C:\Tool\Gimp\forum\GimpChat\Brush\Chalk-02-copy.png #t At the time of this writing, you are able to view the brush opened as image in the Gimp editor. You need to manually close the brush .gbr by Ctrl+W after the export to .png Once you got the .png, you can import it in PhotoShop to create .abr ![]() |
Author: | nelo [ Fri May 12, 2023 1:59 am ] |
Post subject: | Re: FROM GBR FILE TO ABR FILE |
This Doesn't answer Gimper's question ... |
Author: | AlSchemist [ Sat May 13, 2023 3:59 pm ] |
Post subject: | Exporting a grayscale .gbr brush as .png in Gimp Script-Fu |
Hi Nelo, as an AI language model would claim, you are right. ![]() There is not a simple way ![]() Beginning by a negative sentence is an obvious shibboleth that does not help. ![]() Three teams of developpers of the softwares quoted in #2 were able to design an .abr reader probably in a compiled high level language such as C++ or C. ![]() However they all decided to not publish ![]() What could we expect with the prehistoric interpreted language Script-Fu, mainly when the problem of the writing of an .abr is not technical? ![]() Exporting a grayscale .gbr brush as .png in Gimp Script-Fu Attachment: ExportGbrToPng.png [ 143.29 KiB | Viewed 1357 times ] Anyway in the following version of the export of .gbr to .png, there is no need to close manually the .gbr by Ctrl+W. ![]() ![]() Code: Select all ; Gimp Script-Fu exports brush .gbr as .png with the idea to import .png in PhotoShop to build brush .abr Also, copy and paste the function PathSplit from KodiSave.scm or hereafter enclosed: ![]() Code: Select all ; (PathSplit "") Run in Windows doubling each backslash of the .gbr full path : Code: Select all (Export-gbr-to-png "C:\\Tool\\Gimp\\forum\\GimpChat\\Brush\\Chalk-02-copy.gbr") Export-gbr-to-png SUCCESSFULLY exported "Chalk-02-copy.gbr" to C:\Tool\Gimp\forum\GimpChat\Brush\Chalk-02-copy.png #t |
Author: | rich2005 [ Tue May 16, 2023 4:37 am ] |
Post subject: | Re: FROM GBR FILE TO ABR FILE |
I smell a ChatGPT AFAIK no such Gimp Brush Converter plugin. Certainly not in the old defunct plugin registry site. There is the abr.exe plugin to convert abr brushes to gbr but nothing the other way round. The only way is using Photoshop to add an image to a brush collection. |
Author: | oldmangrumpy [ Tue May 16, 2023 4:40 am ] |
Post subject: | Re: FROM GBR FILE TO ABR FILE |
@Rich2005 -relevant post now deleted. |
Page 1 of 1 | All times are UTC - 5 hours [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |