With recent GIMP version 2.10, photoshop .abr-Brushes cannot be loaded within GIMP anymore. I found the following way to batch convert the photoshop brushes to PNGs and then to GIMPs native .gbr-brushes.
For creating the PNGs there is already a tool available called abrMate. Download it and open an .abr-File and click “Export all open Brushes to PNG”.
The below code can be used in Python-Fu to convert all the PNGs in a folder into GIMP’s brush format “.gbr”.
from gimpfu import *
import os
def convert_png_to_gbr():
source_folder = "C:\Temp\PNG"
dest_folder = "C:\Temp\GIMPBrushes"
for filename in os.listdir(source_folder):
print "Convert File: "+filename
img = pdb.gimp_file_load(source_folder+"/"+filename,filename)
pdb.file_gbr_save(img, img.layers[0], dest_folder +"/"+ filename+".gbr", filename, 100, filename)
convert_png_to_gbr()