Difference between revisions of "Documentation/OOo3 User Guides/Calc Guide/Modifying images"

From Apache OpenOffice Wiki
Jump to: navigation, search
 
(21 intermediate revisions by 3 users not shown)
Line 11: Line 11:
  
 
== Using the picture toolbar ==
 
== Using the picture toolbar ==
When you insert an image or select one already present in the document, the Picture toolbar appears. You can also set it to always be present ('''View > Toolbars > Picture'''). Picture control buttons from the Picture toolbar can also be added to the Standard Toolbar. See Chapter 14 (Setting Up and Customizing Calc) for more information.
+
When you insert an image or select one already present in the document, the Picture toolbar appears. You can set it to always be present ('''View > Toolbars > Picture'''). Picture control buttons from the Picture toolbar can also be added to the Standard Toolbar. See [[Documentation/OOo3_User_Guides/Calc Guide/Customizing Calc|Setting Up and Customizing Calc]] for more information.
  
 
This toolbar can be either floating or docked. Figure 4 shows what the Picture toolbar looks like when it is floating. A brief explanation of the function of the tools is given in Table 1. A more detailed exploration is provided in the ''Draw Guide''.
 
This toolbar can be either floating or docked. Figure 4 shows what the Picture toolbar looks like when it is floating. A brief explanation of the function of the tools is given in Table 1. A more detailed exploration is provided in the ''Draw Guide''.
Line 36: Line 36:
 
| [[Image:FilterIcon.png]]
 
| [[Image:FilterIcon.png]]
 
| Filter
 
| Filter
| Displays the Picture Filter toolbar.
+
| Displays the Graphic Filter toolbar.
  
 
|-
 
|-
| [[Image:GraphicsModeBox.png]]
+
| [[Image:Ch5T1.png]]
 
| Graphics Mode
 
| Graphics Mode
 
| The drop-down list reveals several [[#Choosing a graphics mode| color modes]].
 
| The drop-down list reveals several [[#Choosing a graphics mode| color modes]].
Line 51: Line 51:
 
| [[Image:TranspBox.png]]
 
| [[Image:TranspBox.png]]
 
| Transparency
 
| Transparency
| [[#Setting transparency| Sets the transparency]] of the selected image.
+
| Sets the [[#Setting transparency|transparency]] of the selected image.
  
 
|-
 
|-
Line 101: Line 101:
  
 
== Choosing a graphics mode ==
 
== Choosing a graphics mode ==
 +
 +
You can change color images to grayscale by selecting the image and then selecting '''Grayscale''' from the Graphics mode list.
 +
 
''Table 2: Graphics modes''
 
''Table 2: Graphics modes''
  
Line 126: Line 129:
  
 
== Using graphic filters ==
 
== Using graphic filters ==
Click the Filter icon to display the Graphic Filter toolbar, where you can apply basic photographic and effect filters to images from within Calc. You can tear off this toolbar and place it anywhere on the screen.
+
Click the Filter icon [[Image:FilterIcon.png]] to display the Graphic Filter toolbar, which provides options for applying basic photographic and effect filters to images from within Calc. To "tear off" this toolbar and place it anywhere on the screen, click on the three parallel lines and drag it away.
  
 
[[Image:GraphicFilters.png]]<br/>''The graphic filters available in Calc''
 
[[Image:GraphicFilters.png]]<br/>''The graphic filters available in Calc''
Line 165: Line 168:
 
| [[Image:Aging.png]]
 
| [[Image:Aging.png]]
 
| Aging
 
| Aging
| Essentially a Sepia filter.
+
| Applies a Sepia filter.
  
 
|-
 
|-
Line 194: Line 197:
 
|}
 
|}
  
{{Documentation/Caution| Applying OOo picture filters to any image consecutively will progressively degrade the quality of the image. The picture filters used in Calc utilize what is known as a Destructive Editing algorithm, whereby each filter is applied to the image immediately, changing the original data of the image. Successive transformations result in less and less original data remaining, thus compromising the quality of the inserted picture. While this might be acceptable for use in simple documents, it is still recommended that dedicated photo or image editing software be used to perform anything but the simplest of manipulations.}}
+
{{Warn| Applying OOo picture filters to any image consecutively will progressively degrade the quality of the image. The picture filters used in Calc utilize what is known as a Destructive Editing algorithm, whereby each filter is applied to the image immediately, changing the original data of the image. Successive transformations result in less and less original data remaining, thus compromising the quality of the inserted picture. While this might be acceptable for use in simple documents, it is still recommended that dedicated photo or image editing software be used to perform anything but the simplest of manipulations.}}
  
 
== Adjusting colors ==
 
== Adjusting colors ==
 
Use the Color toolbar to adjust an image’s red, green, and blue channels independently, as well as its brightness, contrast and gamma.
 
Use the Color toolbar to adjust an image’s red, green, and blue channels independently, as well as its brightness, contrast and gamma.
  
[[Image:ColorAdj.png]]<br/>''The Color Toolbar''
+
[[Image:Ch5F0b.png]]<br/>''The Color Toolbar''
  
 
== Setting transparency ==
 
== Setting transparency ==
Line 208: Line 211:
  
 
== Cropping pictures ==
 
== Cropping pictures ==
Click the Crop icon to open a dialog where you can select which portion of the image you want to remove.  
+
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. The user interface in Calc for cropping an image is not very friendly. so it may be a better choice to use a graphics package.
  
It is not possible to use the mouse to select the area to be cropped. Instead, in the crop dialog, specify how far from the top, bottom, left and right borders the crop should be, as illustrated below. On the thumbnail in the figure, notice that the cropped selection is highlighted with an inner rectangle.  
+
Click the Crop icon [[Image:CropIcon.png]] to open a dialog where you can select which portion of the image you want to remove.
 +
 
 +
It is not possible to use the mouse to select the area to be cropped, as you can in Draw. Instead, in the Crop dialog, specify how far from the top, bottom, left and right borders the crop should be, as illustrated below. On the thumbnail in the figure, notice that the cropped selection is highlighted with an inner rectangle.  
  
 
[[Image:CG3Ch8F7.png|thumb|none|500px|''The Crop dialog'']]  
 
[[Image:CG3Ch8F7.png|thumb|none|500px|''The Crop dialog'']]  
  
'''Keep scale''' / '''Keep image size''' options: when '''Keep scale''' is selected (default), cropping the image does not change the scale of the picture. When '''Keep image size''' is selected, cropping produces enlargement (for positive cropping values), shrinking (for negative cropping values), or distortion of the image so that the image size remains constant.
+
On the Crop dialog, you can control the following parameters:
 +
 
 +
===Keep scale / Keep image size===
 +
 
 +
When '''Keep scale''' is selected (default), cropping the image does not change the scale of the picture.  
 +
 
 +
When '''Keep image size''' is selected, cropping enlarges (for positive cropping values), shrinks (for negative cropping values), or distorts the image so that the image size remains constant.
 +
 
 +
===Left, Right, Top, and Bottom===
 +
The image is cropped by the amount entered in these boxes. For example, a value of 3cm in the Left box cuts 3 cm from the left side of the picture.
 +
*When Keep scale is selected, the size of the image also changes, so in this example the width will be reduced by 3 cm.
 +
*When Keep image size is selected, the remaining part of the image is enlarged (when you enter positive values for cropping) or shrunk (when you enter negative values for cropping) so that the width and height of the image is not changed.
 +
 
 +
===Width and Height===
 +
The ''Width'' and ''Height'' fields under either ''Scale'' or ''Image size'' change as you enter values in the Left, Right, Top, and Bottom fields. Use the thumbnail next to these fields to determine the correct amount by which to crop.
 +
 
 +
The cropped shape is always a rectangle; more complex cropped shapes are not possible in Calc. Instead, use a dedicated photo or image editing software for the job, then import the image into Calc.
  
The cropped shape is always a rectangle; more complex cropped shapes are not possible in Calc. Consider using dedicated photo or image editing software for the job, then importing the image into Calc.
+
{{Note|If you crop an image in Calc, the picture itself is not changed. If you export the document to HTML, the original image is exported, not the cropped image.}}
  
 
== Resizing an image ==
 
== Resizing an image ==
Line 228: Line 249:
 
The corner handles resize both the width and the height of the graphic object simultaneously, while the other four handles only resize one dimension at a time.
 
The corner handles resize both the width and the height of the graphic object simultaneously, while the other four handles only resize one dimension at a time.
  
{{Documentation/Tip| To retain the original proportions of the graphic, ''Shift+click'' one of the corner handles, then drag. Be sure to release the mouse button '''before''' releasing the ''Shift'' key.}}
+
{{Tip| To retain the original proportions of the graphic, ''Shift+click'' one of the corner handles, then drag. Be sure to release the mouse button '''before''' releasing the ''Shift'' key.}}
  
 
Resizing a bit-mapped (raster) image such as a photograph adversely affects the resolution, causing some degree of blurring. It is better to use a graphics package to size your picture correctly before inserting it into your document, if possible.
 
Resizing a bit-mapped (raster) image such as a photograph adversely affects the resolution, causing some degree of blurring. It is better to use a graphics package to size your picture correctly before inserting it into your document, if possible.
Line 235: Line 256:
  
 
== Rotating a picture ==
 
== Rotating a picture ==
Calc does not provide a tool for rotating a picture, but you can use this workaround:
 
  
# Open a new ''Draw'' or ''Impress'' document.
+
The drawing toolbar in Calc does not provide the rotation tool as default, but you can add it. For details see [[Documentation/OOo3_User_Guides/Getting_Started/Customizing_toolbars| Customize toolbars]]. Find the command '''Rotate''' in the category '''Drawing'''.
# Insert the image you want to rotate.
 
# Select the image, then in the Drawing toolbar (shown by default at the bottom of the window in Impress and Draw), select the '''Rotate''' icon [[Image:RotateIcon.png]].
 
# Rotate the image as desired. Use the red handles at the corners of the picture and move the mouse in the direction you wish to rotate. By default the picture rotates around its center (indicated by a black crosshair), but you can change the pivot point by moving the black crosshair to the desired rotation center.
 
# Select the rotated picture by pressing ''Ctrl+A'', then copy the image to the clipboard with ''Ctrl+C''.
 
# Finish by going back to the Calc document, place the cursor where the image is to be inserted, and press ''Ctrl+V''.
 
  
{{Documentation/Tip| To restrict the rotation angle to multiples of 15 degrees keep the ''Shift'' key pressed while rotating the image.}}
+
# Open the Drawing toolbar via the '''Show Draw Functions''' icon [[Image:InsertDrawIcon.png]] in the Standard toolbar.
 +
# Select the picture. Then the '''Rotate''' icon [[Image:RotateIcon.png]] is active, select it.
 +
# Rotate the image as desired. Use the red handles at the corners of the picture and move the mouse in the direction you wish to rotate. By default the picture rotates around its center (indicated by a black crosshair), but you can change the pivot point by moving the black crosshair to the desired rotation center. To restrict the rotation angle to multiples of 15 degrees keep the ''Shift'' key pressed while rotating the image.
  
 +
Use the dialog page '''Rotation''' of the [[Documentation/OOo3_User_Guides/Calc_Guide/Picture_context_menu#Position and Size|Position and Size dialog]] to set the rotation angle numerically.
  
 
{{CCBY}}
 
{{CCBY}}
 
[[Category: Calc Guide (Documentation)]]
 
[[Category: Calc Guide (Documentation)]]

Latest revision as of 08:01, 16 July 2018



When you insert a new image, you may need to modify it to suit the document. This section describes the use of the Picture toolbar, resizing, cropping, and a workaround for rotating a picture. Changes made in Calc do not affect the original picture, whether it is embedded or linked.

Calc provides many tools for working with images. These tools are sufficient for most people's everyday requirements. However for professional results it is generally better to use an image manipulation program such as GIMP to modify images (for example, to crop, resize, rotate, and change color values) and then insert the result into Calc. GIMP is an open-source graphics program that can be downloaded from http://www.gimp.org/downloads/.

Using the picture toolbar

When you insert an image or select one already present in the document, the Picture toolbar appears. You can set it to always be present (View > Toolbars > Picture). Picture control buttons from the Picture toolbar can also be added to the Standard Toolbar. See Setting Up and Customizing Calc for more information.

This toolbar can be either floating or docked. Figure 4 shows what the Picture toolbar looks like when it is floating. A brief explanation of the function of the tools is given in Table 1. A more detailed exploration is provided in the Draw Guide.

Two other toolbars can be opened from this one: the Graphic 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 toolbars, you can apply small corrections to the graphic or obtain special effects.

The Picture Toolbar

Table 1: Picture toolbar functions (from left to right)

Icon Name Behavior
InsertPictureIcon.png From File Use of this icon is described in Inserting an image from a file.
FilterIcon.png Filter Displays the Graphic Filter toolbar.
Ch5T1.png Graphics Mode The drop-down list reveals several color modes.
ColorIcon3.png Color Opens the Color toolbar.
TranspBox.png Transparency Sets the transparency of the selected image.
LineIcon.png Line Adjusts the border style of the selected image.
AreaIcon.png Area Fills an area with the selected color or pattern.
ShadowIcon.png Shadow Adds a drop shadow to the edges of the picture.
CropIcon3.png Crop Opens the Crop dialog, where you can remove a selected part of the picture.
AnchorIcon3.png Anchor Toggles between anchoring the image to the cell or to the page.
BringToFront.png Bring to Front Brings the selected image to the front of the stack.
SendToBack.png Send to Back Pushes the selected image to the rear of the stack.
ForeBack.png To Foreground / Background Allows image to float in the foreground or makes it part of the background (behind the cells).
AlignIcon3.png Alignment If two or more pictures are selected, adjusts the horizontal and vertical alignment of the pictures in relation to each other.

Choosing a graphics mode

You can change color images to grayscale by selecting the image and then selecting Grayscale from the Graphics mode list.

Table 2: Graphics modes

Graphics mode Behavior
Default Keeps the picture the same as it was inserted.
Grayscale Shows the picture in gradual shades of gray.
Black / White Converts the picture into a monochromatic black and white image.
Watermark Makes the picture into a watermark that blends into the background.

Using graphic filters

Click the Filter icon FilterIcon.png to display the Graphic Filter toolbar, which provides options for applying basic photographic and effect filters to images from within Calc. To "tear off" this toolbar and place it anywhere on the screen, click on the three parallel lines and drag it away.

GraphicFilters.png
The graphic filters available in Calc

Table 3: Graphic filters and their effects

Icon Name Behavior
Invert.png Invert Inverts the colors in the picture like a negative.
Smooth.png Smooth Applies a Gaussian Blur to the image which softens edges.
Sharpen.png Sharpen Sharpens the image.
Remnoise.png Remove Noise Applies crude noise reduction.
Solarize.png Solarization Reverses a portion of the tones, then produces pronounced outlines of the highlights.
Aging.png Aging Applies a Sepia filter.
Posterize.png Posterize Opens a dialog to determine the number of poster colors. This effect is based on the reduction of the number of colors. It makes photos look like paintings.
Popart.png Pop Art Applies a Pop Art style to the image.
Charcoal.png Charcoal Sketch Applies a Charcoal Sketch look to the image.
Relief.png Relief Displays a dialog for creating reliefs. The position of the imaginary light source that determines the type of shadow can be chosen.
Mosaic.png Mosaic Joins small groups of pixels into rectangular areas of the same color. The larger the individual rectangles are, the fewer details the graphic image has.
Documentation caution.png Applying OOo picture filters to any image consecutively will progressively degrade the quality of the image. The picture filters used in Calc utilize what is known as a Destructive Editing algorithm, whereby each filter is applied to the image immediately, changing the original data of the image. Successive transformations result in less and less original data remaining, thus compromising the quality of the inserted picture. While this might be acceptable for use in simple documents, it is still recommended that dedicated photo or image editing software be used to perform anything but the simplest of manipulations.

Adjusting colors

Use the Color toolbar to adjust an image’s red, green, and blue channels independently, as well as its brightness, contrast and gamma.

Ch5F0b.png
The Color Toolbar

Setting transparency

Modify the percentage value in the Transparency box TranspBox.png on the Picture toolbar to make the image more transparent. This is particularly useful when creating a watermark or when wrapping the image in the background.

Customizing lines, areas, and shadows

The Line, Area, and Shadow icons opens dialogs where you can customize them. Details are in the Draw Guide.

Cropping pictures

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. The user interface in Calc for cropping an image is not very friendly. so it may be a better choice to use a graphics package.

Click the Crop icon CropIcon.png to open a dialog where you can select which portion of the image you want to remove.

It is not possible to use the mouse to select the area to be cropped, as you can in Draw. Instead, in the Crop dialog, specify how far from the top, bottom, left and right borders the crop should be, as illustrated below. On the thumbnail in the figure, notice that the cropped selection is highlighted with an inner rectangle.

The Crop dialog

On the Crop dialog, you can control the following parameters:

Keep scale / Keep image size

When Keep scale is selected (default), cropping the image does not change the scale of the picture.

When Keep image size is selected, cropping enlarges (for positive cropping values), shrinks (for negative cropping values), or distorts the image so that the image size remains constant.

Left, Right, Top, and Bottom

The image is cropped by the amount entered in these boxes. For example, a value of 3cm in the Left box cuts 3 cm from the left side of the picture.

  • When Keep scale is selected, the size of the image also changes, so in this example the width will be reduced by 3 cm.
  • When Keep image size is selected, the remaining part of the image is enlarged (when you enter positive values for cropping) or shrunk (when you enter negative values for cropping) so that the width and height of the image is not changed.

Width and Height

The Width and Height fields under either Scale or Image size change as you enter values in the Left, Right, Top, and Bottom fields. Use the thumbnail next to these fields to determine the correct amount by which to crop.

The cropped shape is always a rectangle; more complex cropped shapes are not possible in Calc. Instead, use a dedicated photo or image editing software for the job, then import the image into Calc.

Documentation note.png If you crop an image in Calc, the picture itself is not changed. If you export the document to HTML, the original image is exported, not the cropped image.

Resizing an image

To resize an image.

  1. Click the picture, if necessary, to show the green resizing handles.
  2. Position the pointer over one of the green resizing handles. The pointer changes shape giving a graphical representation of the direction of the resizing.
  3. Click and drag to resize the picture.
  4. Release the mouse button when satisfied with the new size.

The corner handles resize both the width and the height of the graphic object simultaneously, while the other four handles only resize one dimension at a time.

Tip.png To retain the original proportions of the graphic, Shift+click one of the corner handles, then drag. Be sure to release the mouse button before releasing the Shift key.


Resizing a bit-mapped (raster) image such as a photograph adversely affects the resolution, causing some degree of blurring. It is better to use a graphics package to size your picture correctly before inserting it into your document, if possible.

For more accurate resizing, use the Position and Size dialog.

Rotating a picture

The drawing toolbar in Calc does not provide the rotation tool as default, but you can add it. For details see Customize toolbars. Find the command Rotate in the category Drawing.

  1. Open the Drawing toolbar via the Show Draw Functions icon InsertDrawIcon.png in the Standard toolbar.
  2. Select the picture. Then the Rotate icon RotateIcon.png is active, select it.
  3. Rotate the image as desired. Use the red handles at the corners of the picture and move the mouse in the direction you wish to rotate. By default the picture rotates around its center (indicated by a black crosshair), but you can change the pivot point by moving the black crosshair to the desired rotation center. To restrict the rotation angle to multiples of 15 degrees keep the Shift key pressed while rotating the image.

Use the dialog page Rotation of the Position and Size dialog to set the rotation angle numerically.

Content on this page is licensed under the Creative Common Attribution 3.0 license (CC-BY).
Personal tools