Open Source Software Technical Articles

Want the Best of the Wazi Blogs Delivered Directly to your Inbox?

Subscribe to Wazi by Email

Your email:

Connect with Us!

Current Articles | RSS Feed RSS Feed

Image annotation in GIMP, Dia, and OpenOffice Draw

  
  
  

The GIMP is a wonderful image editor, but it might be overkill if all you want to do is annotate an image. If you want to highlight a part of an image, so that for example the audience for your presentation can focus on a particular aspect, you'll probably find it easier and more intuitive to do that in a program such as Dia or OpenOffice Draw. Let's see how to annotate an image in all three programs.

As an example, we'll highlight an image by circling an area and creating an arrow to point at the circle. All three of the tools mentioned allow you to work in different layers, separating the edits of the background from the annotations. We'll work with an image of coats of arms that dates from 1876, and highlight the coat of arms for Siam (Thailand), which shows an elephant. You could ask an audience to count down four rows and over two columns, but if you draw a circle around the item, the audience can quickly find it immediately.

With the image loaded in the GIMP, drill down through the menu using Tools -> Selection Tools -> Ellipse Select. Click with the mouse at the top left of the Siam entry and then again at the bottom right. This creates a "marching ants" outline for the circle. Using Windows -> Dockable Dialogs -> Colors set the foreground (drawing) color to a distinctive color to make the circle stand out against the image.

Choose Edit -> Stroke Selection to change line parameters. Choose "Stroke line" to begin testing, with a width of 3 px. It will use the current foreground color and draw a line of the thickness you specify where the marching ants are. You should now have a red circle around the Siam coat of arms. Choose Select -> none to cancel the circle selection. The marching ants will stop and your circle will remain in place.

To draw an arrow, choose Tools -> Paint Tools -> Pencil or Brush. Set the properties of the drawing tool to suit your purposes. The result should be something like Figure 1.

Circle and arrow in the GIMP

One of the drawbacks of using the GIMP is that the result is not easily editable. You can edit the circle and arrow as a bunch of pixels separate from the underlying image if you paint them onto their own separate layer, but any advanced editing, such as moving the arrow relative to the circle or changing its color, unless each is on its own layer, is not easy.

Annotation in Dia

Now let's attempt the same thing using Dia. Load the image into the main Dia window, then select the ellipse or perfect circle object from the diagram editor and click it onto the base image. Figure 2 shows the initial result of this operation.

Dragging a circle onto the image in Dia

You can use the eight green points to adjust the position and size of the circle over the correct part of the large image. You can also click and drag as needed.

Next, right-click on the circle and choose Properties from the dialog box. Here you can change the color of the circle and its line width. Change "Draw background" to NO; this controls opacity, and the background it refers to is the white background of the circle object. Saying no allows the coat of arms image to show through. In Dia, opacity of objects is either 0 percent or 100; if you need more varied opacity then you should choose a different editor.

At this point you have two objects, the circle and the base image, both sitting on one layer. Since they are both on the same layer, Dia may try to associate them. You may not notice an effect now, but when you add an arrow, Dia will probably try to associate the arrow with the base image. If you see some strange behavior where you cannot place the end of an arrow where you want it, you should remove your objects from the layer, add a new layer through the Layer menu option, and paste the objects onto the new layer. Dia now will not try to associate the annotations with the underlying image if they are on different layers, but will associate them with each other, which is what you want.

To add an arrow, click the line object from the diagram editor palette and click again somewhere in the image outside the circle. This produces a line with an arrowhead. Click on the ends to adjust its position. Dragging the arrow end into the circle lights up the circle to show that the program recognizes that the circle and the arrow should be associated. Release the mouse button and you'll find that the arrow is now connected to the circle.

The two objects can now be treated as a group or separately. If you drag or resize the circle, the arrow will follow it. You can edit each object by selecting it and right-clicking to produce the dialog box.

Figure 3 shows a detail view of the final output. Note that at high resolution there is a little bleeding of the lines into the base image. This would not be noticeable at a distance; the thinner the lines, the worse the bleeding.

Detail of image in Dia

If you export this set of objects as an image, Dia will not preserve the object structure. Make sure to save the structure as a Dia file if you need to come back and edit the objects separately.

Annotation in OpenOffice Draw

OpenOffice Draw, which is just as intuitive as Dia, uses a similar process. You can easily select objects once they have been created, and change their properties at any time. Draw does not have the same library of technical shapes Dia comes with, but it is quite capable with more general shapes.

Also, Draw does not associate or connect objects; that is up to the drawer. In some cases it is more efficient and effective to allow a program such as Dia do this, since the result will usually look more professional, and it makes subsequent editing easier.

In Draw, add a circle in the same way as in Dia, by selecting one of the standard objects. You can add an arrow either by placing a plain line and then editing the line to show an arrow at one end, or select an object from the Arrow tool box, which you can make viewable from the View -> Toolbars menu item.

The result in OpenOffice Draw

Conclusion

When you need to annotate images, clearly you have a choice of tools from which you can pick. The GIMP is the way to go if you want to learn just one application that provides all the bells and whistles required to edit your base image as well as add annotation. However, the GIMP does not treat annotations as objects that can be linked together, so it is not easy to edit annotations once they have been created, but you can build them in layers and delete and recreate layers as needed. Also, the GIMP's menu structure is quite complicated; remembering the steps and which menu is where is a challenge unless you are a regular user of the program.

Dia is a good choice if you need to make basic adjustments to an image and need access to a library of technical object shapes to add to your exposition. Most of Dia's commands and buttons are readily visible.

OpenOffice Draw is an excellent midpoint between the GIMP and Dia. It creates annotations as objects as in Dia, but lacks Dia's library of technical object shapes. It does however have a large gallery of fills, which, while not relevant in this case since the background is part of the presentation, would be helpful in a more general context.




This work is licensed under a Creative Commons Attribution 3.0 Unported License
Creative Commons License.

Comments

It's even easier if you can put up with xfig's old fashioned interface because you simply change the z-axis of the annotation layer so that it is in front of the bitmap image. 
 
xfig then saves the image location and the annotation for later use and you can then export it in pretty well any format from pdf to png. 
 
Sometimes the old timers still do things best. 
Posted @ Monday, April 29, 2013 2:24 PM by John Hudson
gnome-paint is also very convenient for quick annotations. It is basically a clone of MS Paint. In all it's simplicity, it serves it's purpose.
Posted @ Tuesday, April 30, 2013 12:50 PM by Mark
Tip: Maxthon web browser comes with a built-in screen capture feature called snap (as long as is running in the background you can use ctrl+f1 hotkeys from any other app) to capture anything visible in the screen and then you can annotate the capture as desired, etc and is free. 
 
GadgetsA2z 
http://gadgetsa2z.wordpress.com
Posted @ Friday, August 23, 2013 8:27 AM by GadgetsA2z
You feel dirty accomplish advantageous by calmly on the accept you the artist, your acquaintance is a flaunting handbag, in the college's target price. You can miss next year the agnate backpack. Bargains, the discount and the annual "dirty nod, you want to make sure the new of low ante in artist handbags. About consistently There are deals amphibians we bag dirty. The best replica handbags way to Analysis for the is by electronic shopping bags of dirty. Online sales can let you "accomplish the the best preference. Low cost airlines in the online commerce site for the artist backpack nod you accept these things at Lower hyperplasia missed. Enrich you against the online aswell proliferation by accept to artist at and through bag handbag low ante dirty. Sites like handbag1000.com of its yield advantage of nod your bag is too dirty. There is a big brand handbags Gucci amount of and Louis Weedon to like you in the price of that would to and fro eyeballs ring to let you! On this site you bag dirty for added at than one lured to artists such as handbags price. So, no need to adjournment to http://www.cadra.org.uk/plan.php yield advantage and loose clothing sales of bag and air condition of artist backpack!
Posted @ Saturday, October 25, 2014 2:42 AM by Heaity
Post Comment
Name
 *
Email
 *
Website (optional)
Comment
 *

Allowed tags: <a> link, <b> bold, <i> italics