PNG files can be used directly as patterns. Just copy them to the patterns
directory in your Gimp profile (or add the directory where they are to the list in Preferences > Folders > Patterns
. You only lose the ability to pick a name different from the file.
For brushes its a bit more complicated...
You can copy the image to the clipboard and then set the active Brush to Clipboard image
or Clipboard Mask
, but this is OK only for an occasional use.
If you Gimp has Python support(*) you can do a mass conversion like this:
- install the
ofn-export-layers
script. Installation instructions at the bottom of the page. The ZIP contains an HTML doc.
- Load all the files you want to convert as layer of a single image.
File > Open as layers
will let you select multiple files, so this isn't as long as it looks.
- Possibly do some tinkering... Brushes are either RGB brushes (colored pixels on transparent background) that keep their color or grayscale (black on
white background) that assume the foreground color, so depending on type you may want to remove the alpha channels and convert the image to grayscale.
- Use
File > Export all layers
and specify a name pattern such as {name.gbr}
(*) This is a bit complicated these days, because Gimp is still using Python 2.7 which is deprecated, so some distros such as Ubuntu (since 20.04) ave removed the support. It can reinstated, the easiest way being to use the flatpak version available on the Gimp site.