created on | July 14, 2022 |
For screenshots in documentation, I often need arrows to point to the area of interest in the screenshot. This is where brushes in GIMP come in handy. Unfortunately, the arrow brushes I found on the web are more suitable for artistic purpose but what I want is just some simple, clear and straight arrows.
draw.io offers some arrows suitable for technical documentation (unfortunately, you can’t use draw.io to put some arrows into a screenshot). So I drew some arrows in draw.io, exported the diagram to PNG with transparent background and created some arrow brushes in GIMP.
Here’s a simple walkthrough how to create arrows as GIMP brushes with draw.io and GIMP.
Create one or arrow types in drawio. You don’t have have to create the differenet versions like pointing left, pointing right, pointing up etc., here, as this is easier done in GIMP. If you also want to create diagonal arrows later in GIMP leave enough space between the arrows so we can rotate them in GIMP.
Export the diagram with the arrows as PNG with tranparent background. If you also want diagonal arrows, make sure that Page is selected for size:
Open the image you created in the step above with Gimp and select the region around the arrow. Once again, if you also want diagonal errors, select a region wide enough so the arrow can be rotated:
Enter
Select Image, Autocrop Image from the menu. The arrow image is now cropped to the borders of the arrow:
Export the image in GBR (GIMP brush) Format. Enter the description in the field description. This decription will be shown later in the Tool Options pane of the Toolbox window. The spacing value is not relevant here, you can leave it at the default of 10:
You can now flip the base image horizontally, vertically and/or rotate it 90° or 180° from the menu with Image, Transform. Doing so you can create variants of the brush just created with the arrow pointing right, up and down.
Now for the diagonal arrows. You can’t rotate a image in GIMP with values other than 90° or 180°. To rotate an image for i.e. 45°, you have to rotate the layer. You can do that with Layer, Transform, Arbitrary Rotation and providing the angle. If you do that with image that has been cropped to the arrow borders, the result will look like this:
Obviously, this is not what we want. In the base image, hit
Now you can rotate the layer by 45° and then autocrop the image to the borders of the arrow. This is the base image for the diagonal arrows, pointing up-left, down-left, etc. Again, export the arrows made from this base image in GBR format.
After you have done all versions of the arrow you want, copy the resulting .gbr files to either:
Restart GIMP. In the Tool Options window, you will see the new brushes now in the Tool Options pane:
If you view the arrow brushes as a list in the Tool Options pane, the arrows will be listed with the description you entered when you exported the arrow into GBR format:
The original size of the brush is 60 pixels high. You can use the brush in its original size by clicking on the button right to the site display (the button with the tooltip Resize brush to brush’s native size):