Import GIMP Brush

Moderator: Kathy_9

Post Reply
LeviFiction
Advisor
Posts: 5984
Joined: Thu Oct 02, 2008 1:07 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Alienware M17xR4
processor: Intel Core i7-3630QM CPU - 2_40GH
ram: 6 GB
Video Card: NVIDIA GeForce GTX 660M
sound_card: Sound Blaster Recon3Di
Hard_Drive_Capacity: 500GB
Corel programs: PSP: 8, 9, X, XI, X2, X8,X9, 2018, 2019
Location: USA

Import GIMP Brush

Post by LeviFiction »

Script Name: Import GBR
Download Link: https://drive.google.com/file/d/1Db4bMk ... sp=sharing
Compatability: X6 - 2018 (, 2018)
Requirements: Place in Scripts-Trusted Folder
Description:
GBR files are one of several Brush formats that the GIMP uses. At the moment this script only properly supports greyscale brushes. Plans to add 32-bit support are in the work.

The script opens a brush file, converts it to a bmp file, opens that file in PSP, exports it as a brush. closes the file and then deletes it. Just make sure that your brushes are in a folder that can be written to without administrative privileges.

Version History:
v1.0 - Initial script - imports greyscale GIMP Brush files
V1.1 - Adds support for 32-bit truecolor + alpha GIMP brush files
Last edited by LeviFiction on Wed Jun 27, 2018 1:19 am, edited 1 time in total.
LeviFiction
Advisor
Posts: 5984
Joined: Thu Oct 02, 2008 1:07 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Alienware M17xR4
processor: Intel Core i7-3630QM CPU - 2_40GH
ram: 6 GB
Video Card: NVIDIA GeForce GTX 660M
sound_card: Sound Blaster Recon3Di
Hard_Drive_Capacity: 500GB
Corel programs: PSP: 8, 9, X, XI, X2, X8,X9, 2018, 2019
Location: USA

Re: Import GIMP Brush

Post by LeviFiction »

UPDATE: V1.1 - Added support for full 32-bit color brushes from the GIMP. This allows for semi-transparent brushes and guarantees that all GBR brushes are supported.
Linda Lou
Posts: 207
Joined: Sun Jan 28, 2018 10:26 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
processor: AMD Ryzen 7 Pro Mobile-Intel i7-Intel i7vPro10th
ram: 8GB
Hard_Drive_Capacity: 1024 GB
Monitor/Display Make & Model: ThinkPad X395/ThinkPad L14/ThinkPad Extreme Gen3
Corel programs: PaintShop Pro 7, 8.1, 2018

Re: Import GIMP Brush

Post by Linda Lou »

LeviFiction wrote:UPDATE: V1.1 - Added support for full 32-bit color brushes from the GIMP. This allows for semi-transparent brushes and guarantees that all GBR brushes are supported.
It's been a few months, so just to confirm?
Full color.gbr are now supported in PSP by using the script above?
Will that work for my 64-bit PSP 2018 yet, or do I need to use 32-bit 2018?
LeviFiction
Advisor
Posts: 5984
Joined: Thu Oct 02, 2008 1:07 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Alienware M17xR4
processor: Intel Core i7-3630QM CPU - 2_40GH
ram: 6 GB
Video Card: NVIDIA GeForce GTX 660M
sound_card: Sound Blaster Recon3Di
Hard_Drive_Capacity: 500GB
Corel programs: PSP: 8, 9, X, XI, X2, X8,X9, 2018, 2019
Location: USA

Re: Import GIMP Brush

Post by LeviFiction »

Just to make sure I'm not misrepresenting anything here.

What this script does is a very basic conversion. It reads in the GBR format and converts it into a PNG file. The PNG file is imported into PSP and then PSP's own Export Brush function is used to save out the result as a PSPBrush file. PSP will still convert this to a blank and white image. You're still bound by what PSP can do.

My original version of the script only read in the basic B&W brush images and converted those to a BMP file which doesn't support transparency. By moving the script to use PNG as the intermediary file type I was able to read in the full color and transparency information of the color gimp brushes. So, this script should (unless GIMP made any format changes to their brushes) be able to read and import a complete image from any GBR file. PSP will then convert it to a format that PSP can read. Which means throwing away all of the color.
Post Reply