Chapter 11, Images and Graphics
Chapter 11, Images and Graphics
Introduction
You can add graphic and image files, including photos, drawings, and scanned images, to
LibreOffice documents. Images in LibreOffice are of these basic types:
Image files, such as photos, drawings, PDF documents, and scanned images
Diagrams created using LibreOffice’s drawing tools
Artwork created using clip art or Fontwork
Charts created using LibreOffice’s Calc component
This chapter covers images, diagrams, and Fontwork. For more detailed instructions on
working with drawing tools, see the Draw Guide and Impress Guide. Instructions on how to
create charts are given in the Calc Guide.
LibreOffice can import various vector (line drawing) images, and can rotate and flip such
images. LibreOffice also supports raster (bitmap) file formats, the most common of which are
GIF, JPG, PNG, and BMP. See Appendix B for a full list of the graphic formats LibreOffice can
import.
LibreOffice can also import SmartArt images from Microsoft Office files. For example, Writer
can open a Microsoft Word file that contains SmartArt, and you can use Writer to edit the
images.
To edit photos and other bitmap images, use a bitmap editor. To edit line drawings, use a
vector drawing program. You do not need to buy expensive programs. For many graphics,
LibreOffice Draw is sufficient. Open-source (and usually no‑cost) tools such as GIMP (bitmap
editor) and Inkscape (vector drawing program) are excellent. These and many other
programs work on Windows, macOS, and Linux.
When the image is in a file stored on the computer, you can insert it into a LibreOffice
document using one of the following methods:
This method embeds (saves a copy of) the image file in the document. To link the file instead
of embedding it, hold down the Ctrl+Shift keys while dragging the image.
1) Open a file browser window and locate the image you want to insert.
2) Drag the image into the LibreOffice document and drop it where you want it to
appear. A faint vertical line marks where the image will be dropped.
Note
If you choose the Link option, a message box appears when you click Open. It
asks if you want to embed the graphic instead. Choose Keep Link if you want
the link, or Embed Graphic if you do not. To prevent this message from
appearing again, deselect the option Ask when linking a graphic at the bottom
of the message.
https://books.libreoffice.org/en/GS73/GS7311-ImagesAndGraphics.html 2/24
24/10/2024, 10:33 Chapter 11, Images and Graphics
Caution
If the application from which the image was copied is closed before the image is
pasted into the target, the image stored in the clipboard could be lost.
If the Link option in the Insert Image dialog is selected, LibreOffice creates a link to the file
containing the image instead of saving a copy of the image in the document. The result is
that the image is displayed in the document, but when the document is saved, it contains
only a reference to the image file, not the image itself. The document and the image remain
as two separate files, and they are merged together only when you open the document
again.
https://books.libreoffice.org/en/GS73/GS7311-ImagesAndGraphics.html 3/24
24/10/2024, 10:33 Chapter 11, Images and Graphics
Note
When inserting the same image several times in the document, LibreOffice
embeds only one copy of the image file.
1) Open the document in LibreOffice and choose Edit > Links to External Files.
https://books.libreoffice.org/en/GS73/GS7311-ImagesAndGraphics.html 4/24
24/10/2024, 10:33 Chapter 11, Images and Graphics
2) In the Edit Links dialog (Figure 2), select the files you want to change from linked to
embedded.
3) Click the Break Link button and then click Yes to confirm embedding the image.
If a scanner is connected to your computer, LibreOffice can call the scanning application and
insert the scanned item into your document as an image. To start this procedure,
choose Insert > Media > Scan > Select Source on the Menu bar. Select the scan source
from the list of available devices, then click in the document where you want the graphic to
be inserted, and choose Insert > Media > Scan > Request to open the imaging software
where you can adjust settings for image quality, size, and other attributes.
Although this practice is quick and easy, it is unlikely to result in a high-quality image of the
correct size. You may get better results by scanning material into a graphics program and
cleaning it up there before inserting the resulting image into LibreOffice.
The Gallery (Figure 3) provides a convenient way to group reusable objects such as graphics
and sounds that you can insert into your documents. The Gallery is available in the Writer,
Calc, Impress, and Draw components of LibreOffice. See “Managing the LibreOffice
Gallery” below. You can copy or link an object from the Gallery into a document.
https://books.libreoffice.org/en/GS73/GS7311-ImagesAndGraphics.html 5/24
24/10/2024, 10:33 Chapter 11, Images and Graphics
To insert an object as a link, hold down the Shift and Ctrl keys and drag and drop the object
into the document.
https://books.libreoffice.org/en/GS73/GS7311-ImagesAndGraphics.html 6/24
24/10/2024, 10:33 Chapter 11, Images and Graphics
When you insert an image or select one already present in the document, the Image toolbar
appears. Two other toolbars can be opened from this one: the Image Filter toolbar, which can
be torn off and placed elsewhere on the window, and the Color toolbar, which opens as a
separate floating toolbar. From these three toolbars, you can apply small corrections to the
image or obtain special effects: transparency, color adjustment, flipping and rotating, and
applying special-effects filters. For more information, see the Writer Guide.
Cropping images
When you are only interested in a section of the image for the purpose of your document,
you may wish to crop (cut off) parts of it. LibreOffice provides two ways to crop an image:
the Crop tool and the Crop tab of the Image dialog in Writer (accessed by right-clicking on
the image and selecting Properties in the context menu). The Crop tool provides a quick
and easy way to crop an image; but for more control, use the Image dialog. For more
information, see the Writer Guide.
Note
If you crop an image in LibreOffice, the image itself is not changed. LibreOffice
hides, but does not cut off, part of the image. If you export the document to
HTML, the original image is exported, not the cropped image. For exporting
individual cropped images, see “Exporting (saving) images” below.
Resizing an image
To fit the image into your document, you may need to resize it. A quick and easy way to
resize is by dragging the image’s sizing handles:
Tip
The corner handles resize both the width and the height of the image
simultaneously, while the other four handles resize only one dimension at a time.
To retain the original proportions of the image, hold down the Shift key while
dragging one of these handles.
For more accurate resizing of images, use the Type tab of the Image dialog.
https://books.libreoffice.org/en/GS73/GS7311-ImagesAndGraphics.html 7/24
24/10/2024, 10:33 Chapter 11, Images and Graphics
To quickly flip an image vertically or horizontally, or rotate it, right-click the image and
select Rotate or Flip in the context menu, then choose the desired option in the submenu.
Writer provides more rotation options than the other LibreOffice components. See the Writer
Guide for more information.
Other settings
The Image dialog in Writer has ten tabs:
Type: define the size and anchor of the image and its position on the page.
Options: give the image a descriptive name, define the alternative text to be displayed
when the mouse hovers over the image, and protect some of the image settings from
changes.
Wrap: choose how text wraps around the image, and the spacing between the image and
the text.
Hyperlink: associate a hyperlink to the image, or create an image map.
Image: flip or rotate the image, and display the original location of the file in case the
image is linked rather than embedded.
Crop: cut off portions of the image, scale it and set its size.
Borders: create borders around the image and add a shadow.
Area: change the background (color, bitmap, gradient, pattern, or hatching) of the image.
This setting produces the desired results only for images with a transparent color.
Transparency: set the transparency and gradient options for the image.
Macro: associate a macro to the image. You can choose among the predefined macros or
write your own.
To make complex adjustments to the image in another program, or to save the image for use
in another document, you can export it directly from the document. Right-click on the image
and choose Save in the context menu to open the Image Export dialog. LibreOffice will let
you save the picture in several formats. Name the image, select the desired image format in
the File type list, and click Save.
Before the image is saved another dialog opens, where you can choose various image size
and format options. The content of this dialog depends on the output file type selected. If
the image has been modified within Writer, you will also see a confirmation dialog where
you can choose to save the original version or the modified version of the image.
Compressing images
https://books.libreoffice.org/en/GS73/GS7311-ImagesAndGraphics.html 8/24
24/10/2024, 10:33 Chapter 11, Images and Graphics
If you insert a large image in a document and resize it to fit into the layout of the page, the
complete full-size original image is stored in the document file to preserve its content,
possibly resulting in a large document file to store or send by mail.
If you can accept some loss of quality of the image rendering or want to resize it, you can
compress or resize the image object to reduce its data volume while preserving its display in
the page layout.
Right-click to select the image and open the context menu. Then choose Compress to open
the Compress Image dialog (Figure 4). Use the Calculate New Size button to update the
image information on the dialog on each parameter set you change.
Click OK to apply the compression settings. If the resulting image is not acceptable,
press Ctrl+Z to undo and choose another compression setting. For more information, see the
Help.
Positioning images
When you add an image to a document, you need to choose how to position it with respect
to the text and other images. For details, see the relevant component guide (Writer, Calc, and
so on).
Anchoring refers to the reference point for the images. This point could be the page, the
frame or cell where the object is, a paragraph, or even a character. An image always has
an anchor point.
Text wrapping in a Writer document refers to the relation of images to the surrounding
text, which may wrap around the image on one or both sides, be overprinted behind or in
front of the image, or treat the image as a separate paragraph or character.
In Writer, the settings can be accessed in several ways, depending on the nature of the
graphic:
In the Format menu: Anchor, Wrap, and Arrange (for images and drawing objects).
In the context menu displayed when you right-click the graphic; this menu also includes
an Align Objects option.
For images, on the Type and Wrap tabs of the Image dialog. Note that you cannot control
the arrangement using the dialog.
For drawing objects, on the Position and Size tab of the Position and Size dialog.
For an embedded object (such as a Calc spreadsheet or Draw document), on the OLE-
Object toolbar.
You can add captions to Writer images in three ways: automatically, by using the Caption
dialog, or manually. See the Writer Guide for details.
You can display the Gallery in Icon View (Figure 3) or Detailed View (Figure 5), and you
can hide or show the Gallery by clicking on the Sidebar’s Hide button.
https://books.libreoffice.org/en/GS73/GS7311-ImagesAndGraphics.html 10/24
24/10/2024, 10:33 Chapter 11, Images and Graphics
Note
The default themes supplied with LibreOffice can not be customized, although
new themes can be added; see “Adding a new theme to the Gallery” below. The
locked themes are easily recognizable by right-clicking on them; the only option
in the context menu is Properties.
You may wish to add your own theme to the Gallery to hold any images or other objects that
you use frequently, for example, a company logo. Or you may wish to add several themes,
each holding images for a specific project.
Tip
You can also get more gallery themes from the LibreOffice extensions website
at https://extensions.libreoffice.org/, including themes from previous versions of
https://books.libreoffice.org/en/GS73/GS7311-ImagesAndGraphics.html 11/24
24/10/2024, 10:33 Chapter 11, Images and Graphics
LibreOffice, that are no longer installed by default with the program. See Chapter
14, Customizing LibreOffice, for instructions on how to manage extensions.
1) Right-click on the name of the theme and select Properties in the context menu.
2) In the theme’s Properties dialog, click the Files tab (Figure 6).
Figure 6: Gallery Properties dialog
https://books.libreoffice.org/en/GS73/GS7311-ImagesAndGraphics.html 12/24
24/10/2024, 10:33 Chapter 11, Images and Graphics
To delete an image from a theme, right-click on the name of the image file or its thumbnail
in the Gallery, then click Delete in the context menu. A message appears, asking if you want
to delete this object. Click Yes.
To delete a theme from the Gallery, select it from the list of themes, right-click, then
click Delete in the context menu. You cannot delete a theme supplied with LibreOffice.
Note
Deleting the name of a file from the list in the Gallery does not delete the file from
the hard disk or other location.
Graphics and other objects shown in the Gallery can be located anywhere on your
computer’s hard disk, on a network drive, or other removable media. When you add graphics
to the Gallery, the files are not moved or copied; the location of each new object is simply
added as a reference.
In a workgroup, you may have access to a shared Gallery (where you cannot change the
contents unless authorized to do so) and a user Gallery, where you can add, change, or
delete objects.
The location of the user Gallery is specified in Tools > Options > LibreOffice > Paths. You
can change this location, and you can copy your gallery files (*.sdv) to other computers.
Gallery contents provided with LibreOffice are stored in a different location. You cannot
change this location.
Note
The locations of Gallery themes distributed through LibreOffice extensions are
determined by the extensions’ settings.
1) In the LibreOffice document, click on the image in which you want to define the
hotspots.
2) Choose Tools > ImageMap on the Menu bar. The ImageMap Editor dialog (Figure
7) opens. The main part of the dialog shows the image on which the hotspots are
defined.
3) Use the tools and fields in the dialog (described below) to define the required
hotspots and links. A hotspot is identified by a line indicating its shape. The information
needed for the hotspot includes the address pointed to by the hyperlink and the text
you want to be displayed when the mouse pointer is moved over the hotspot.
4) Click the Apply icon to apply the settings.
5) When done, click the Save icon to save the image map to a file, then close the
dialog.
Figure 7: The dialog to create or edit an image map
The toolbar at the top of the dialog contains the following tools:
Apply: applies the changes.
Open, Save, Close, and Select.
Rectangle, Ellipse, Polygon, and Freeform Polygon: tools for drawing a hotspot shape.
These tools work in the same way as the tools in the Drawing toolbar.
Edit, Move, Insert, Delete Points: advanced editing tools to manipulate the shape of a
polygon hotspot. Select the Edit Points tool to activate the other tools.
Undo and Redo: cancels the previous action or reapplies the previous canceled action.
Active: toggles the status of a selected hotspot between active and inactive.
https://books.libreoffice.org/en/GS73/GS7311-ImagesAndGraphics.html 14/24
24/10/2024, 10:33 Chapter 11, Images and Graphics
Macro: associates a macro with the hotspot instead of just associating a hyperlink.
Properties: sets the hyperlink properties and adds the Name attribute to the hyperlink.
Below the toolbar, specify for the selected hotspot:
Address: the address pointed to by the hyperlink. You can also point to an anchor in a
document; to do this, write the address in this
format: file:///<path>/document_name#anchor_name
Text: type the text that you want to be displayed when the cursor is moved over the
hotspot.
Frame: where the target of the hyperlink will open: pick among _blank (opens in a new
browser window), _self (opens in the active browser window), _top or _parent.
Tip
The value _self for the target frame will work in the vast majority of occasions. It
is therefore not recommended to use the other choices unless absolutely
necessary.
You can place the drawing objects directly on a page in the document or insert them into a
frame.
You can also use the drawing tools to annotate photographs, screen captures, or other
illustrations produced by other programs, but this is not recommended because:
You cannot include images in a group with drawing objects, so they may not remain
aligned in your document.
If you convert a document to another format, such as HTML, the drawing objects and the
images will not remain associated; they are saved separately.
To begin using the drawing tools, display the Drawing toolbar (Figure 8) by clicking View >
Toolbars > Drawing or by clicking on the Show Draw Functions icon on the Standard
toolbar.
Tip
https://books.libreoffice.org/en/GS73/GS7311-ImagesAndGraphics.html 15/24
24/10/2024, 10:33 Chapter 11, Images and Graphics
If you are planning to use the drawing tools repeatedly, you can tear off (undock)
this toolbar and move it to a convenient place as a floating toolbar in the window.
https://books.libreoffice.org/en/GS73/GS7311-ImagesAndGraphics.html 16/24
24/10/2024, 10:33 Chapter 11, Images and Graphics
3) For more control, or to define new attributes, you can click on the Area or Line icon
on the toolbar to display detailed dialogs.
The default you set applies to the current document and session. It is not retained when you
close the document or close LibreOffice, and it does not apply to any other document you
open. The defaults apply to all the drawing objects except text objects.
To change the properties for an existing drawing object, select the object and continue as
described above.
You can also specify the position and size, rotation, and slant and corner radius properties of
the drawing object: right-click on the drawing object and then choose Position and Size in
the context menu. Choose any properties, as required.
An object is resized in a similar way to an image. Select the object, click on one of the eight
handles around it and drag it to its new size. The object will be scaled up or down. When you
grab the handle of an object and drag it, LibreOffice will resize disproportionately; if you also
press the Shift key, the resizing will keep object proportions.
For more sophisticated control of the size of the object, right-click on the object and
choose Position and Size in the context menu. Use the Postion and Size tab to set the
https://books.libreoffice.org/en/GS73/GS7311-ImagesAndGraphics.html 17/24
24/10/2024, 10:33 Chapter 11, Images and Graphics
position and size independently. If the Keep ratio option is selected, then the two
dimensions change so that the proportion is maintained, resulting in a scaled resizing.
Grouping drawing objects makes it easier to handle several objects as a single entity, while
preserving their relative sizes and positions. When objects are grouped, any editing
operations carried out on that group are applied to all members of the group. If you click on
one member of the group, the whole group is selected.
Note
You cannot include an embedded or linked image in a group with drawing
objects.
You can edit an individual member of a group without ungrouping or breaking the group.
Select the group and go to Format > Group > Enter Group on the Menu bar, or right-click
and select Enter Group in the context menu, or click the Enter Group icon on the Drawing
Object Properties toolbar. When you have finished editing an individual member of a group,
go to Format > Group > Exit Group on the Menu bar, or right-click and select Exit
Group in the context menu, or click the Exit Group icon on the Drawing Object Properties
toolbar.
To ungroup or break apart a group of objects, select the group then go to Format > Group
> Ungroup on the Menu bar, or right-click and select Ungroup in the context menu, or click
the Unroup icon on the Drawing Object Properties toolbar.
Using Fontwork
With Fontwork you can create graphical text art objects to make your work more attractive.
There are many different settings for text art objects (line, area, position, size, and more), so
you have a large choice.
Fontwork is available with the Writer, Calc, Impress, and Draw components of LibreOffice, but
you will notice small differences in the way that each component displays it.
https://books.libreoffice.org/en/GS73/GS7311-ImagesAndGraphics.html 18/24
24/10/2024, 10:33 Chapter 11, Images and Graphics
4) Double-click the object to edit the Fontwork text (Figure 11). Type your own text in
place of the black text that appears over the object.
Figure 11: Editing Fontwork text
https://books.libreoffice.org/en/GS73/GS7311-ImagesAndGraphics.html 19/24
24/10/2024, 10:33 Chapter 11, Images and Graphics
Now that the Fontwork object is created, you can edit some of its attributes. To do this, you
can use the Fontwork toolbar, the Fontwork panel on the Properties deck on the Sidebar, the
Formatting toolbar, or menu options as described in this section. If the selected Fontwork
object is a 3-D object, you can also use the 3D-Settings toolbar.
Make sure that the Fontwork toolbar, shown in Figure 12, is visible. If you do not see it, go
to View > Toolbars > Fontwork. Click on the different icons to edit Fontwork objects. Icons
2–6 also appear in the Fontwork panel on the Properties deck on the Sidebar.
https://books.libreoffice.org/en/GS73/GS7311-ImagesAndGraphics.html 20/24
24/10/2024, 10:33 Chapter 11, Images and Graphics
You can customize the Fontwork object with several more attributes. Click on the object; the
Formatting toolbar changes to show the options for customizing the object. These choices
are the same as the ones for other drawing objects, described earlier in this chapter. See also
the Draw Guide for details.
You can use some of the choices on the Format menu to anchor, align, arrange, and group
selected Fontwork objects, wrap text around them, and flip them horizontally and vertically.
You can also right-click on a Fontwork object and choose many of the same options in the
context menu. The context menu also provides quick access to the Line, Area, and Position
and Size dialogs. On the Position and Size dialog, you can enter precise values for size and
position. For more information on all of these menu options, see the Draw Guide.
https://books.libreoffice.org/en/GS73/GS7311-ImagesAndGraphics.html 21/24
24/10/2024, 10:33 Chapter 11, Images and Graphics
If the selected Fontwork object is a 3-D object, you can also use the options on the 3D-
Settings toolbar. You can also change a 2-D Fontwork object into a 3-D object (or change a
3-D object into a 2-D object) by clicking the Toggle Extrusion icon on the Fontwork toolbar.
For more information, see the Draw Guide.
When you select a Fontwork object, eight colored squares (known as handles) appear
around the edge of the object, as shown below. You can drag these handles to resize the
object.
A dark or colored dot also appears on the object. This dot may be in the same place as a
handle, or it may be somewhere else. If you hover the mouse pointer over this dot, the
pointer changes shape. You can drag the dot in different directions to distort the object.
Hovering the mouse pointer over other parts of the object turns the pointer into the usual
symbol for dragging the object to another part of the page.
For precise control of the location and size of the object, and to rotate the object, use the
Position and Size dialog.
1) Choose Insert > Object > QR and Barcode on the Menu bar to open the QR and
Barcode Code dialog (Figure 15).
https://books.libreoffice.org/en/GS73/GS7311-ImagesAndGraphics.html 22/24
24/10/2024, 10:33 Chapter 11, Images and Graphics
2) Fill in the URL/Text field, select an error correction factor (the complexity of the
graphic generated), the width of the margin around it, and the type of code, then
click OK.
Figure 16 shows the code generated by the input in Figure 15. Figure 18 shows an ISBN
barcode generated by the input in Figure 17.
After the barcode or QR code has been generated, you can edit it by right-clicking in the
code and selecting Edit Barcode.
https://books.libreoffice.org/en/GS73/GS7311-ImagesAndGraphics.html 23/24
24/10/2024, 10:33 Chapter 11, Images and Graphics
https://books.libreoffice.org/en/GS73/GS7311-ImagesAndGraphics.html 24/24