HomeDev GuideRecipesAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

Add and edit images

Add and edit images in Optimizely CMS 13 using the image editor. Upload, align, crop, resize, and transform images for your content.

Webpages link to images stored in the media library rather than embedding them directly. Images must be available in a folder under Media in the assets pane to display in your content. Upload an image to a folder in the assets pane and then add it to your content, or drag and drop an image from your computer to a content area. When you drag and drop, the image uploads automatically and is stored in the For This Page (or For This Block) folder.

Edit images directly in Optimizely Content Management System (CMS 13) using the image editor, which provides cropping, resizing, and transformation features.

Add images to content

Add images to your content through image link properties, the rich-text editor, or content areas.

Image link property

Add images to content through an image link property by dragging an image from the assets pane or your computer to the property. If you drag and drop from your computer, the image uploads automatically and is saved in the For this Page or For this Block folder in the assets pane. See Media for information on uploading images to the assets pane.

Screenshot of an empty image link property with a drop zone and Select Image button where editors add an image to content Screenshot of an image link property with an image loaded where editors can see the selected image thumbnail

To replace an already added image, drag and drop another image into the image property or click the image and select another image in the Select Image window.

Screenshot of the Select Image window with a folder tree and file listing where editors browse media folders and select a replacement image

Rich-text editor or content areas

Add images to the rich-text editor or content areas in pages or blocks. Drag and drop the image from your computer into the rich-text editor. The image is stored automatically in the For This Page (or For This Block) folder with its original file name. Alternatively, upload the image to a folder under Media in the assets pane and then drag it from the folder or use the Insert/edit image option in the rich-text editor.

  1. Place the cursor in the editor area where you want the image.

  2. Click Insert/edit image.

    Screenshot of the rich-text editor toolbar with the Insert/edit image button highlighted where editors insert images into content
  3. Click Browse files next to the Source field and select the desired image.

    Screenshot of the Insert/edit image dialog with Source and Browse files fields where editors select an image file
  4. (Optional) Enter an Alternative description for the image, which gets added as an HTML <a> tag to the image. This is important when a reader has turned off the display of images in the browser or when a visually impaired user is using a screen reader.

  5. Click Save.

📘

Note

The TinyMCE editor supports the following image formats: jpeg, png, gif, and bmp.

Find image location

Locate the storage path of an image that is already in the rich-text editor. Select the image and hover over Go to media.

Screenshot of a selected image in the rich-text editor with the Go to media option where editors locate the image storage path

Edit image metadata

View and edit the metadata for an image, including the image name, content ID, and copyright information.

Access an image's metadata using one of the following methods:

  • In an image link property, click in the image to open the Select Image window, and then click More (...) > Edit for the image.

    Screenshot of the Select Image window with More options showing Edit where editors access image metadata from an image link property
  • In the rich-text editor, select the image and then click Go to media.

    Screenshot of the rich-text editor with an image selected and the Go to media option where editors access image metadata
  • In the Media tab of the assets pane, click More (...) > Edit for the image you want to edit.

    Screenshot of the Media tab in the assets pane with More options showing Edit where editors access image metadata

Edit images

Use the Image Editor in CMS 13 to crop, resize, and transform an image. Access the Image Editor using one of the following methods:

  • In an image link property, click in the image to open the Select Image window, and then click More (...) > Open in Image Editor for the image.

    Screenshot of the Select Image window with More options showing Open in Image Editor where editors launch the image editor from an image link property
  • In the rich-text editor, select the image and then click Image Editor in the toolbar.

    Screenshot of the rich-text editor with an image selected and the Image Editor toolbar button where editors launch the image editor
  • In the Media tab of the assets pane, click More (...) > Open in Image Editor for the image you want to edit.

    Screenshot of the Media tab in the assets pane with More options showing Open in Image Editor where editors launch the image editor

Crop

  1. Select Crop in the Image Editor.
  2. Enter values for Top, Left, Width, and Height, or draw a selection in the image to crop. You can also apply Preset values if such values are configured for the website.
  3. Click Apply to save the changes before proceeding.
  4. Continue editing the image as desired, and then save your changes.
Screenshot of the Image Editor crop tool with Top, Left, Width, and Height fields where editors define the crop area

Resize

  1. Select Resize in the Image Editor.
  2. Enter values for Width and Height. You can also apply Preset values if such values are configured for the website.
    📘

    Note

    Constrain proportions is selected by default to retain the image proportions as you resize.

  3. Click Apply to save the changes before proceeding.
  4. Continue editing the image as desired, and then save your changes.
Screenshot of the Image Editor resize tool with Width and Height fields and Constrain proportions option where editors resize an image

Transform

  1. Select Transform in the Image Editor.
  2. Rotate or flip the image as desired.
  3. (Optional) Select Grayscale to convert the image to grayscale.
  4. Continue editing the image as desired, and then save your changes.
Screenshot of the Image Editor transform tool with rotate, flip, and grayscale options where editors transform an image

Save as copy or replace the original

Save an edited image file as a copy or replace the original file:

  • Save as a copy – If you selected the image on a page or block, the copy is saved in the local folder. If you selected the edited image in the media structure, the renamed copy is saved in the same folder as the original.
  • Replace original image – This action affects all places on the website where the image is used.

Select the Quality for the image before saving.

Screenshot of the save options with Quality setting where editors choose to save as a copy or replace the original image

Alt text in CMS images

The site developer handles alt text.

Remove images from content

Remove an image from the content to hide it from visitors. The image remains in Media for future use. Use one of the following methods to remove an image:

  • In an image link property, click More (...) > Remove for the image.

    Screenshot of an image link property with More options showing Remove where editors remove an image from the property
  • In a content area, click Close (x) for the image.

    Screenshot of an image in a content area with a close button where editors remove the image from the content area
  • In the rich-text editor, select the image or place your cursor after the image and delete it.

    Screenshot of the rich-text editor with an image selected where editors can delete the image from the editor