GNOME Bugzilla – Bug 561770
Allow .gih image pipe brushes to provide a custom thumbnail (patch incl.)
Last modified: 2018-05-24 12:27:51 UTC
I've started designing GIMP brushes and am impressed with the flexibility available. However I've come across the problem that the only way to choose the brush thumbnail (the icon that appears in the brush chooser) and the brush outline at the cursor is to use one of the actual brush frames. With some animated brushes the end result doesn't look much like any of the individual frames. A simple example is a brush I just made which spatters dots around randomly when you draw with it. It uses a large centered spot as the brush thumbnail which is not a very good preview of what the brush does. http://mesilliac.deviantart.com/art/Spatter-animated-GIMP-brush-104173139 I thought that a good way to allow making a custom brush thumbnail would be to allow the .gih file to specify an offset for the brushes inside it, so that the first x brushes will be ignored when drawing, but the initial brush in the file is still used as the thumbnail. It was pretty straightforward so I made a patch that allows this. It doesn't affect the current brushes at all, they just use the default offset of 0. The patch is against GIMP version 2.6.1 as provided by Ubuntu, but I can make one against svn if needed.
Created attachment 123149 [details] [review] patch to allow brush offset to main array in .gih files
This is likely to break backward compatibility of the format. It would be nicer to find a solution that also works with older versions of GIMP. Perhaps you want to discuss this on the gimp-developer mailing-list...
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gimp/issues/286.