After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 157506 - Replace the ".gbr" brushes with ".vbr" brushes where possible.
Replace the ".gbr" brushes with ".vbr" brushes where possible.
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Data
git master
Other All
: Urgent enhancement
: 2.4
Assigned To: GIMP Bugs
GIMP Bugs
Depends on: 163602
Blocks:
 
 
Reported: 2004-11-06 11:01 UTC by tobias
Modified: 2007-07-11 13:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
New vbr brushes to replace the gbr brushes (929 bytes, application/x-compressed-tar)
2004-11-06 11:04 UTC, tobias
Details
Brushes with the same names and filenames than the old one. (916 bytes, application/x-compressed-tar)
2004-11-06 18:38 UTC, tobias
Details
New version with pixel.vbr and 1circle.vbr (983 bytes, application/x-compressed-tar)
2004-11-07 20:38 UTC, tobias
Details
A comparison of the new brushes and their counterparts (inverted difference layer composite) (5.20 KB, image/png)
2005-07-06 21:26 UTC, Michael Schumacher
Details
The XCF source for the previous attachment (5.09 KB, application/x-gzip)
2005-07-06 21:27 UTC, Michael Schumacher
Details

Description tobias 2004-11-06 11:01:16 UTC
There is no need to use the old gbr brushes particularly the round brushes are
obsolete.
Comment 1 tobias 2004-11-06 11:04:16 UTC
Created attachment 33491 [details]
New vbr brushes to replace the gbr brushes
Comment 2 Sven Neumann 2004-11-06 11:41:39 UTC
I'd love to do this change but I don't think we can just replace the brushes
since too many scripts rely on the availability of these brushes with exactly
these names.

Perhaps you could bring this up on the mailing-list?
Comment 3 Alan Horkan 2004-11-06 15:31:38 UTC
Tobias are you sure this should this be marked as urgent?  
I thought 2.2-pre1 was pretty much frozen except for bugfixes, so this might
have to wait until after.  


Is .vbr an open standard used by other software?  Why choose .vbr?  

What I'm trying to say is that before you go through all the hard work of
changing file formats is there an open standard we change to as it might open up
the potential of creating brush sets that can be shared between various
applications?  

As they are "Vector Brushes" perhaps it might be possible to use some subset of
a Vector format like SVG (for example) and have something that could potentailly
be shared with Inkscape, Sodipodi and others?  

(and I should probably wait for the message and discuss this onlist...)
Comment 4 Sven Neumann 2004-11-06 16:17:45 UTC
Alan, it was me who marked this as urgent. Also, your comments clearly show that
you don't understand what this report is all about. Can you please let us handle
this on our own? Thanks.
Comment 5 Sven Neumann 2004-11-06 16:22:44 UTC
Tobias. I think we can and should do this change for 2.2 but we would need
brushes that register with the same name (and preferably have the same filename
except for the extension) as the brushes we used to ship with. Of course the
brushes should also match the look of the brushes they replace.
Comment 6 tobias 2004-11-06 18:38:15 UTC
Created attachment 33498 [details]
Brushes with the same names and filenames than the old one.

The Diagonal Stars and the Calligraphic Brushes don't look 100% like the old
one, but as similar as possible.
Comment 7 Sven Neumann 2004-11-07 18:09:10 UTC
Looks good. I wonder if this change could break things. The advantage of doing
it is that you could duplicate any of these standard brushes and then edit it.
The only problem that I could imagine is that someone could set the writable
flag on the system brush folder and edit the system brushes. The user would need
write access to the system brushes folder to be able to do that (note that Win32
users often have those permissions). But then, changing the writeable flag on
the system brush folder is definitely asking for trouble and unlikely to happen
by accident.
Comment 8 tobias 2004-11-07 20:38:13 UTC
Created attachment 33531 [details]
New version with pixel.vbr and 1circle.vbr
Comment 9 Sven Neumann 2004-11-13 21:28:31 UTC
Has anyone yet played with this? Perhaps we should just do the change for
2.2-pre2 and see if any problems turn up?
Comment 10 Michael Schumacher 2004-11-21 15:41:59 UTC
The circular brushes look identical to their old counterparts, but the
calligraphic and crosses differ.
Comment 11 tobias 2004-11-21 17:50:13 UTC
@Michael Schumacher  
Yes, I know that and mentioned it in #6.
Comment 12 Sven Neumann 2004-12-12 14:48:08 UTC
I guess we should postpone this. I am not willing to do this change now that
2.2.0 is that close. Moving to the Future milestone.
Comment 13 Sven Neumann 2005-01-07 12:09:52 UTC
Now would be a good time to get this change into the HEAD branch. Michael, you
mentioned that the calligraphic and cross brushes look different. Do you think
this is a problem or do you agree with Tobias that they are close enough?
Comment 14 Michael Schumacher 2005-01-07 20:35:30 UTC
The round ones and the diagonal stars are really close, but the different cap
style (flat vs. rounded) of the calligraphics ones is noticeable. Also, the
preview  in the brushes dialog for the big diagonal stars is quite different,
the big vbr one looks almost the same as the medium one.

Replacing them is ok, provided that the old ones are available for reference -
maybe we could turn the brushes page at www.gimp.org from a mere list into
something useful...
Comment 15 Michael Schumacher 2005-07-06 21:26:16 UTC
Created attachment 48752 [details]
A comparison of the new brushes and their counterparts (inverted difference layer composite)
Comment 16 Michael Schumacher 2005-07-06 21:27:16 UTC
Created attachment 48753 [details]
The XCF source for the previous attachment
Comment 17 Sven Neumann 2005-11-23 13:14:52 UTC
Bug #322176 proposed an alternative approach, similar but perhaps less problematic.
Comment 18 Martin Nordholts 2007-03-15 20:06:05 UTC
Fixed in trunk, revision 22129:

2007-03-15  Martin Nordholts  <martinn@svn.gnome.org>

        Converted .gbr to .vbr brushes where possible. Fixes bug #322176 and
        bug #157506.

        * data/brushes/Makefile.am: Changed .gbr for .vbr-counterparts for
        converted brushes.

        * data/brushes/*circle.gbr:
        * data/brushes/*fcircle.gbr:
        * data/brushes/DStar*.gbr:
        * data/brushes/callig*.gbr: Removed.

        * data/brushes/Circle-*.vbr:
        * data/brushes/Circle-Fuzzy-*.vbr:
        * data/brushes/Diagonal-Star-*.vbr:
        * data/brushes/Calligraphic-Brush-*.vbr: Added.

Comment 19 Sven Neumann 2007-03-16 08:30:33 UTC
There seems to be a bug somewhere that should be addressed. The size of the brushes as shown in the Brushes dialog has changed. The Circle (01) brush for example is shown to have a size of (3 x 3).
Comment 20 Martin Nordholts 2007-03-16 23:05:49 UTC
The problem lies in the way the mask buffer size is allocated for generated brushes (code from gimp_brush_generated_get_half_size()):

    case GIMP_BRUSH_GENERATED_CIRCLE:
      *half_width  = ceil (sqrt (x_axis.x * x_axis.x + y_axis.x * y_axis.x));
      *half_height = ceil (sqrt (x_axis.y * x_axis.y + y_axis.y * y_axis.y));
      break;

For a 0.5 radius brush, *half_width and *half_height will both be 1 on the break, causing a 3x3 mask buffer to be allocated later on through (code from gimp_brush_generated_calc()):

  mask = temp_buf_new (half_width  * 2 + 1,
                       half_height * 2 + 1,
                       1, half_width, half_height, NULL);

Since I consider this a minor issue, (I personally doesn't care of the size of the buffer as long as the brush width is what I want,) I will concentrate on other 2.4 milestone bugs and let someone else handle this, at least until there are no other 2.4 bugs left of which I have contributions to make.

Fixing this should involve a single file patch (app/core/gimpbrushgenerated.c), given that the algorithm can be easily modified to handle the smaller buffer size (of which I'm not sure).
Comment 21 Martin Nordholts 2007-03-17 09:11:58 UTC
Opened bug #419256 since this is more of a separate bug than directly related to this bug.
Comment 22 Sven Neumann 2007-07-11 12:28:06 UTC
I am reopening this report because the parametric brushes that have been added as a replacement for the pixmap brushes have different spacings. Most (or all) of the old brushes used to use 20% spacing while the new parametric brushes all use 1%.

This results in a drastic slowdown in painting performance and the result also looks vastly different. We need to look at the old brushes and restore the original spacing values.
Comment 23 Sven Neumann 2007-07-11 13:01:54 UTC
2007-07-11  Sven Neumann  <sven@gimp.org>

	* data/brushes/Calligraphic-Brush-*.vbr
	* data/brushes/Circle-*.vbr
	* data/brushes/Diagonal-Star-*.vbr: restored spacing values. Closes
	bug #157506 again.