LibreOffice Logo

Calc Guide 25.2

Chapter 5
Using Images and Graphics

Copyright

This document is Copyright © 2025 by the LibreOffice Documentation Team. Contributors are listed below. You may distribute it and/or modify it under the terms of either the GNU General Public License (https://www.gnu.org/licenses/gpl.html), version 3 or later, or the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/), version 4.0 or later.

All trademarks within this guide belong to their legitimate owners.

Contributors

To this edition

‍Edward Olson

Olivier Hallot

 

 

To previous editions

Barbara Duprey

Jean Hollis Weber

John A Smith

Peter Schofield

Christian Chenal

Martin Saffron

Drew Jensen

Kees Kriek

Steve Fanning

Leo Moons

Felipe Viggiano

Rachel Kartch

Skip Masonsmith

Olivier Hallot

B. Antonio Fernández

Liza Samy

 

 

Feedback

Please direct any comments or suggestions about this document to the Documentation Team’s forum at https://community.documentfoundation.org/c/documentation/loguides/ (registration is required) or email: loguides@community.documentfoundation.org.

Everything you send to a forum, including your email address and any other personal information that is written in the message, is publicly archived and cannot be deleted. Emails sent to the forum are moderated.

Publication date and software version

Published June 2025. Based on LibreOffice 25.2 Community.
Other versions of LibreOffice may differ in appearance and functionality.

Using LibreOffice on macOS

Some keystrokes and menu items are different on macOS from those used in Windows and Linux. The table below gives some common substitutions for the instructions in this document. For a detailed list, see the application Help and Appendix A (Keyboard Shortcuts) to this guide.

Windows or Linux

macOS equivalent

Effect

Tools > Options on Menu bar

LibreOffice > Preferences on Menu bar

Access to setup options

Right-click

Ctrl+click and/or right-click depending on computer setup

Opens a context menu

Ctrl or Control

⌘ and/or Cmd or Command, depending on keyboard

Used with other keys

Alt

⌥ and/or Alt or Option depending on keyboard

Used with other keys

Introduction

Calc is a powerful tool for presenting and analyzing data, as well as making forecasts and predictions. Incorporating graphics can transform a standard spreadsheet into a more engaging and memorable document. Calc supports importing a wide range of vector (line drawing) and raster (bitmap or photo) file formats. Commonly used formats include GIF, JPG, and PNG. For a complete list of supported formats, refer to the LibreOffice Help documentation.

There are three basic types of graphics:

Using graphics in Calc is similar to using graphics in other components of LibreOffice. For more detailed descriptions, please refer to the Getting Started Guide or the Draw Guide.

In LibreOffice, the terms graphics and images refer to both pictures and drawing objects. Often the word images is used when referring to pictures and other graphics that are not drawing objects.

Adding graphics to a spreadsheet

Images, such as corporate logos and photographs, are probably the most common types of graphics added to a spreadsheet. They may be downloaded from the Internet, scanned, created with a graphics program, photographs taken with a digital camera, or clip art in the Gallery. Embedding an image into a spreadsheet makes the image a permanent part of the spreadsheet file. Any changes you make to an embedded image will appear only in that spreadsheet; the original image will not be affected.

Inserting an image file

Locally stored images can be inserted into a spreadsheet using one of the following methods.

Drag and drop

  1. Drag an image from the file browser into the spreadsheet and drop it in the appropriate cell.

Insert Image dialog

  1. Click in the spreadsheet where you want the image to appear.

  2. Choose Insert > Image on the Menu bar.

  3. On the Insert Image dialog (Figure 1), navigate to the file to be inserted, and select it.

  4. Select the Link option if you want to link the file instead of embedding it.

  5. Select the required option in the Anchor menu: To cell, To cell (resize with cell), or To page. See “Anchoring imagesbelow for more information about these options.

  6. Click Open. The image is inserted into the spreadsheet.

Figure 1: Insert Image dialog

Insert Image dialog

Both methods embed a copy of the image file into the document. To create a link to the file instead of embedding it, hold down the Ctrl+Shift keys while dragging the image. Additional details can be found in the section titled “Linking an image filebelow. When linking is selected, Calc may display a confirmation dialog offering the choice to proceed with linking or to embed the image instead. This dialog also includes an option to prevent it from appearing in the future.

Inserting an image from the clipboard

Using the clipboard, you can copy images into a Calc spreadsheet from another LibreOffice document and from other programs. To do this:

  1. Open both the source document and the target document.

  2. In the source document, copy the image to the clipboard – the exact interactions will vary from program to program.

  3. Switch to the target document and click to place the cursor in the cell where the image is to be anchored.

  4. Select Edit > Paste on the Menu bar, or click the Paste icon on the Standard toolbar, or right-click and select Paste in the context menu, or press Ctrl+V.

If the application from which the image was copied is closed before the image is pasted into the target, the image stored on the clipboard could be lost.

Inserting an image using a scanner

If a scanner is connected to your computer, Calc can call the scanning application and insert the scanned item into the document as an image. To start this procedure, choose Insert > Media > Scan > Select Source. After selecting the scanner, place the cursor where you want the image to be inserted, and choose Insert > Media > Scan > Request.

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 passing scanned material into a graphics program and cleaning it up there, before inserting the resulting image into Calc.

Inserting an image from the Gallery

The Gallery (Figure 2) provides a convenient way to group reusable objects such as images and sounds that you can insert into your documents. The Gallery is available in all components of LibreOffice. You can add your own images as well as using the ones supplied with LibreOffice. For more information, see the Getting Started Guide.

Figure 2: The Gallery in the Sidebar

The Gallery in the Sidebar

To insert an image from the Gallery:

  1. Click the Gallery icon on the Sidebar, or select View > Gallery on the Menu bar.

  2. Select a theme.

  3. Select an object with a single click.

  4. Drag and drop the image into the document.

  5. Alternatively right-click on the object in the Gallery and choose Insert in the context menu, in which case the image will be positioned according to the cells selected in the spreadsheet.

To use gallery images from earlier versions of LibreOffice, go to https://extensions.libreoffice.org/ and search for items with a tag filter of “Galleryor click on the Add more galleries via extension button, on the bottom right of the Gallery to open the Extensions: Gallery dialog.

Linking an image file

When the Link option is selected in the Insert Image dialog, or when the Ctrl+Shift keys are held during a drag-and-drop action, Calc creates a link to the image file rather than embedding it. The image appears in the document, but only a reference to the file is saved—meaning the image and the document remain separate. They are combined only when the document is opened again.

Advantages of Linking:

The image file can be modified independently. Any updates to the image will be reflected the next time the spreadsheet is opened. This is particularly useful when images are maintained by another contributor, such as a graphic designer.

Linking also helps reduce the saved file size of the spreadsheet, since the image itself is not stored within the document. While file size is generally not a concern on modern systems, this can still be beneficial for managing large documents.

Disadvantage of Linking:

When sharing the document or moving it to another system, the image files must also be transferred. The original folder structure must be preserved—for example, storing images in a subfolder named Images within the same directory as the spreadsheet. Recipients must replicate this structure to ensure the images display correctly.

When inserting the same image several times in a document, it might appear beneficial to create links. However, this is not necessary, as LibreOffice embeds only one copy of the image file in the document. Deleting one or more of the copies does not affect the other copies of the same file.

Embedding linked images

When images are originally linked, they can later be embedded into the document with ease.

  1. Open the spreadsheet in Calc.

  2. Choose Edit > Links to External Files on the Menu bar to open the Edit Links dialog (Figure 3), which shows all the linked files.

Figure 3: Edit Links dialog

Edit Links dialog

  1. Select the files to convert from linked to embedded.

  2. Click Break Link and confirm the action. The selected files will then be embedded into the spreadsheet.

Converting embedded images back to linked ones is more complex. Each image must be replaced individually, ensuring the Insert as Link option is selected during reinsertion.

Modifying images

Inserted images may require modification to suit the document. Any changes made in Calc do not affect the original image regardless of how it was inserted.

Calc provides several tools for working with images. These tools are sufficient for most requirements. However, for professional results it is generally better to use Draw or other software designed to modify image files, and then insert the result into Calc.

Using the Image toolbar

When inserting or selecting an image in the spreadsheet, the Image toolbar (Figure 4) replaces the Formatting toolbar. The Image toolbar can also be shown using View > Toolbars > Image on the Menu bar. The tools available on the Image toolbar are described below.

Figure 4: Image toolbar

Image toolbar

Changes to image properties affect only the display and printing of the image. The original image file remains unchanged.

Figure 5: Color toolbar

Color toolbar

Using the Properties deck in the Sidebar

Some of the settings in the Image toolbar are also available in the Properties deck on the Sidebar when an image is selected. The options in the Properties deck include the Image, Line, Position and Size, and Columns settings.

Adding text

Text can be added directly to an image or drawing object. Once added, the text will move along with the image when repositioned. For more information on adding text to images, see the Draw Guide.

  1. Double-click on the image. The text cursor flashes in the center of the image. The Text Formatting toolbar automatically opens at the top of the spreadsheet.

Figure 6: Text Formatting toolbar for images

Text Formatting toolbar for images

  1. Enter the desired text and use the tools on the Text Formatting toolbar to format it. Most of these tools are the same as those for formatting text in cells.

  2. To adjust the position of the text or how it appears in the image, right-click on the image while the text cursor is active and select Text in the context menu to open the Text dialog (Figure 7).

  3. Make any necessary changes and click OK to close the dialog.

Figure 7: Text dialog

Text dialog

Positioning, resizing, and arranging images

Using the mouse

To move an image to a new position in your spreadsheet, click on the image and drag it to a new position. The image will still be anchored as it was originally.

To resize an image:

  1. Click on the image to display the selection handles.

  2. Position the mouse pointer over one of the selection handles. The pointer changes shape, giving a graphical representation of the direction of the resizing. The corner handles resize both the width and the height of the image simultaneously. The top, bottom, left and right handles only resize one dimension at a time.

  3. Click and drag to resize the image.

To retain the original proportions of the image, click and drag one of the corner handles. If you want to change the original proportions, Shift+Click one of the corner handles, then drag.

Using the Position and Size dialog

To accurately position and size an image in your spreadsheet, click on the image and then go to Format > Object > Position and Size on the Menu bar, or right-click on the image and select Position and Size in the context menu.

The following values can be set using the Position and Size tab (Figure 8) of the Position and Size dialog:

The units of measurement used for X / Y coordinates and the width and height of the image are set by going to Tools > Options > LibreOffice Calc > General > Measurement unit.

By default, the base point for positioning and sizing objects is located in the upper-left corner of the spreadsheet. This base point can be temporarily changed to simplify alignment or dimensioning by clicking a position that corresponds to the desired reference point. This adjustment is valid for a single use only; once the Position and Size dialog is closed, the base point resets to the default top-left corner.

Images can also be rotated or slanted using the Rotation or Slant & Corner Radius tabs within the Position and Size dialog. See the Draw Guide for details.

Figure 8: Position and Size dialog – Position and Size tab

Position and Size dialog – Position and Size tab

Arranging images

Each image inserted into a spreadsheet is stacked above the previous one, regardless of whether the images overlap. The Arrange commands can be used to modify the stacking order of these images. Note that the stacking order of text cannot be changed.

  1. Select the image to be reordered.

  2. Navigate to Format > Arrange on the Menu bar, or right-click on the image and select Arrange in the context menu. Then select one of the available arrangement options.

  3. Alternatively, use one of the six arrangement icons on the Image toolbar to quickly adjust the image’s position in the stacking order.

The arrangement options are as follows:

Anchoring images

Anchor images so they stay in their position in relation to other items.

To anchor a selected image or change the type of anchor used:

Use Fit to Cell Size in the graphic (image) context menu to resize the image to the cell dimensions, adjusting the row height and column width as needed.

Aligning images

When multiple images are present in a spreadsheet, aligning them can enhance the overall visual consistency and create a more professional appearance. Alignment options include three horizontal settings—left, center, and right—and three vertical settings—top, middle, and bottom. These options help ensure that images are positioned uniformly within the layout.

  1. Select all of the images to be aligned (select one and hold down the Shift key while selecting others).

  2. Go to Format > Align Text on the Menu bar, or click the down arrow at the right of the Align Objects icon on the Image toolbar, or right-click on one of the images and select Align Objects in the context menu.

  3. Select one of the options available for alignment.

Press the main area of the Align Objects icon on the Image toolbar (to the left of its down arrow) to quickly left align the selected images.

Grouping and ungrouping images

To group several images so that they become a single object in the spreadsheet:

  1. Select the images you want to group (select one and hold down the Shift key while selecting others).

  2. Go to Format > Group > Group on the Menu bar, or right-click on one of the selected images and select Group in the context menu.

When grouping images, the resulting image is anchored To Page. You can change the anchor as usual.

To ungroup images:

  1. Select the image group you want to ungroup.

  2. Go to Format > Group > Ungroup on the Menu bar, or right-click on one of the selected images and select Ungroup in the context menu.

To edit an image in a group:

  1. Select the image group where you want to edit an image within the group.

  2. Go to Format > Group > Enter Group on the Menu bar, or right-click on one of the selected images and select Enter Group in the context menu.

  3. Select the target image and make the changes.

  4. Navigate to Format > Group > Exit Group on the Menu bar, or right-click on one of the selected images and select Exit Group in the context menu.

Using LibreOffice’s drawing tools

Calc, like other components of LibreOffice, includes a variety of tools for creating drawings such as simple diagrams using rectangles, circles, lines, text, and other shapes. Multiple drawing objects can be grouped to maintain their relative position and proportions when moved or resized.

These drawing tools can also be used to annotate photographs, screen captures, or illustrations created in other programs; however, this practice is not recommended. For more complex drawings, it is advisable to use LibreOffice Draw and then insert the completed drawing into the spreadsheet. For a more detailed explanation, see the Draw Guide.

Drawing toolbar

To begin using the drawing tools, go to View > Toolbars > Drawing to open the Drawing toolbar. It appears at the bottom of the spreadsheet by default, but it may be moved to a more convenient position as needed.

When the Drawing toolbar opens, it displays a default set of tools as shown in Figure 9. Hover the mouse pointer over a tool to see a tooltip describing its function. Icons with small arrows on the right side open with palettes of tools. To add tools to the Drawing toolbar, right-click in an empty area on the toolbar and select Visible Buttons from the context menu.

Figure 9: Drawing toolbar

Drawing toolbar

To use a drawing tool:

  1. Click on the tool in the Drawing toolbar (Figure 9). The mouse pointer changes to a drawing-functions pointer and the normal Formatting toolbar changes to the Drawing Object Properties toolbar (Figure 10).

Figure 10: Drawing Object Properties toolbar after inserting an object.

Drawing Object Properties toolbar after inserting an object.

  1. Move the cross-hair pointer to the target cell and then click and drag to create the object.

  2. To cancel the active drawing function, click on the tool’s icon again, press the Esc key, or click on the Select (cursor) icon on the Drawing toolbar.

  3. To change the fill color, line type and weight, anchoring, and other properties of the drawing object, use the Drawing Object Properties toolbar (Figure 10) or the Properties deck on the Sidebar (Figure 11). Some properties may be adjusted by right-clicking on the drawing object.

Figure 11: Properties deck in Sidebar for drawing object

Properties deck in Sidebar for drawing object

Presetting drawing object defaults

The default properties for a drawing object may be defined before the object is drawn. Such default properties are applied only to the current spreadsheet and are not retained when the spreadsheet is closed. To preset the default properties for a drawing object:

  1. Click Select on the Drawing toolbar (Figure 9).

  2. Use the active controls on the Drawing Object Properties toolbar (Figure 12) to set the default value for each property. Area and line properties such as color and thickness are set using a palette menu.

Figure 12: Drawing Object Properties toolbar

Drawing Object Properties toolbar

For more information on the properties of drawing objects, see the Draw Guide.

Resizing drawing objects

Select the object and click on one of the selection handles then drag the object to its new size. For a scaled resizing, select one of the corner handles and keep the Shift key pressed while dragging the handle. For more information, see “Positioning, resizing, and arranging imagesabove.

Grouping and ungrouping drawing objects

For grouping, ungrouping, and editing grouped drawing objects, see “Grouping and ungrouping imagesabove.

Additional tools

Right-clicking on an image or drawing object opens a context menu with additional tools.

Description:

Add metadata in the form of a title and description to an image. This information is used by accessibility tools (such as screen reader software) and as ALT (alternative text) attributes if you export the document to HTML.

Name:

Adding a custom name to be assigned to an image will make the image easier to find in the Navigator.

Rotate or Flip:

Rotate the image or flip it horizontally or vertically.

Assign Macro:

Add programmable functionality to the graphic. For more information, see Chapter 14, Macros.

Edit Hyperlink:

Define a hyperlink from an image to another location in the spreadsheet, another document, or a web page. Select Edit Hyperlink in the context menu to open the Hyperlink dialog. See Chapter 12, Linking Data, for more information on hyperlinks.

Compress:

Compress images to reduce the file size of the spreadsheet. Select Compress in the context menu to open a Compress Image dialog where you can set the compression options. (Option not available for drawing objects.)

Edit with External Tool:

Edit an image with an external tool. The dialog that opens will depend on your computer setup. (Option not available for drawing objects.)

Using Fontwork

Fontwork allows the creation of graphical text art objects that can enhance the visual appeal of a document. A wide variety of customization options are available, including settings for line, area, position, size, and more, offering extensive creative flexibility.

Fontwork is included in every component of LibreOffice. However, slight differences may be observed in how it is displayed or accessed across the various components.

Creating a Fontwork object

  1. On the Fontwork toolbar (View > Toolbars > Fontwork, see Figure 13) or the Drawing toolbar (View > Toolbars > Drawing), click the Insert Fontwork Text icon.

Figure 13: Fontwork toolbar

Fontwork toolbar

  1. In the Fontwork Gallery (Figure 14), select a Fontwork style, then click OK. The Fontwork object will appear in the document.

  2. Double-click the object to edit the Fontwork text (Figure 15). Select the text and type over the black Fontwork text that appears in front of the object.

  3. Click anywhere in a free space or press Esc to apply your changes.

Figure 14: The Fontwork Gallery

The Fontwork Gallery

Editing a Fontwork object

Fontwork object attributes may be changed using the Fontwork toolbar, the Formatting toolbar, or menu options. For more information, see the Getting Started Guide.

Figure 15: Editing Fontwork text

Editing Fontwork text

Generating a QR or Barcode

The QR and Barcode generation feature may be used to encode any text string or URL as a barcode or QR code that can be inserted into the spreadsheet as an image.

Choose Insert > OLE Object > QR and Barcode on the Menu bar to open the QR and Barcode dialog (Figure 16).

Figure 16: QR and Barcode dialog

QR and Barcode dialog

Fill in the URL/Text field, select an Error correction factor (the complexity of the graphic generated), enter the width in dots of the surrounding border, and then click OK. Figure 17 shows the code generated by the inputs in Figure 16.

Figure 17: QR code example

QR code example

After the QR or Barcode has been generated, it is possible to edit it by right-clicking in its image and selecting Edit Barcode.

Contents