> For the complete documentation index, see [llms.txt](https://docs.superdesk.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.superdesk.org/user-guide/superdesk-user-guide/content-management/creating-and-editing-content-items/edit-media-items.md). Agents can also search and read this documentation through its [MCP server](https://docs.superdesk.org/~gitbook/mcp).

# Edit Media items

Pictures, video and audio are media items in Superdesk. This page explains how to upload them, how to fill in their metadata, how to edit pictures and their crops, and how to use media in an article: in the body, as featured media and in galleries.

For the body editor and the other fields of an article, see [Creating and Editing Content Items](https://docs.superdesk.org/user-guide/superdesk-user-guide/content-management/creating-and-editing-content-items.md).

## Uploading media

You can upload media in several ways:

* **Create** > **Upload media** in Monitoring or in the opened-items bar. You can also drop files straight onto the **Create** button.
* The **Media** button in the body editor toolbar, or by dropping files into the body. See [Adding media to the body](#adding-media-to-the-body).
* A featured media or gallery field in an article. See [Featured media](#featured-media) and [Galleries](#galleries).

Each way opens the same **Upload media** window.

{% stepper %}
{% step %}

### Add the files

Drag your files onto the window, or click **Select them from folder**. You can add several files at once, and mix pictures, video and audio if the place you upload to accepts them. Files of other types are refused with the message "Only the following files are allowed:" and the allowed types.
{% endstep %}

{% step %}

### Choose the desk

When you upload from the **Create** menu, the **Send to:** list at the top shows the desk the files go to. Pick another desk if needed. The new media items are placed in that desk's working stage.
{% endstep %}

{% step %}

### Select the files to describe

The files are shown as thumbnails, all selected. Click a thumbnail to select or deselect it, or use **Select All** and **Deselect All**. The **Metadata** panel shows how many items you are editing, for example "Currently editing: 3 items". Remove a file you added by mistake with the **x** on its thumbnail.
{% endstep %}

{% step %}

### Fill in the metadata

Type the metadata in the **Metadata** panel. What you type applies to every selected file, so you can describe a whole set at once and then select single files to give them their own headline or caption. Required fields are marked.
{% endstep %}

{% step %}

### Upload

Click **Upload**. A progress circle shows on each thumbnail. If a required field is empty, Superdesk names it in a message such as "Required field Headline is missing." Click **Cancel** to close the window without uploading.
{% endstep %}
{% endstepper %}

<figure><img src="https://1128240491-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZhE676hWpByB99kC4Us%2Fuploads%2Fgit-blob-645790789de0d8d1d72ea346d7862dafa5f605f9%2Fupload-dialog.png?alt=media" alt="The Upload media window with three picture thumbnails, the Send to desk list and the Metadata panel" width="999"><figcaption><p>The Upload media window</p></figcaption></figure>

When you upload pictures into an article, Superdesk then opens each picture in the media editor so you can check its crops. Click **Done** to move on to the next one. See [Editing crops](#editing-crops).

### Metadata taken from the file

Superdesk reads the metadata embedded in your files and fills in the matching fields for you: headline, caption, byline, credit, copyright notice and language. If a file has no byline, Superdesk uses the byline from your user profile. For video files, Superdesk reads the embedded XMP metadata (since 2.10). Check these values before you upload, since agency files often carry text you do not want to publish.

### Copying metadata between uploads

At the bottom of the **Metadata** panel, **Copy metadata** remembers the values you typed. In a later upload, click **Paste metadata** to fill them in again. **Clear saved metadata** forgets them. This is useful when you upload pictures from the same assignment in several batches.

### Which fields you see

*Available since Superdesk 3.5.*

The fields in the **Metadata** panel come from the picture content profile your administrator set up (since 3.5). Which of them you must fill in before uploading is set in the server configuration, so it can differ from the profile. If there is no picture profile, Superdesk shows a default set of fields. See [Media content profiles](#media-content-profiles).

## Editing a media item

Open a media item like any other item: double-click it, or choose **Edit** in its actions menu. The editor shows the media and the fields of its content profile.

* A **picture** is shown with its size, for example "Original (3000 x 2000 px)". Hover over the picture to see three buttons: **Edit metadata**, **Edit image** and **Edit crops**. **Edit crops** only appears when your newsroom has crop sizes set up. The crops are shown under the picture.
* A **video** has a player, an **Edit metadata** button and a thumbnail. Click **Select thumbnail** to choose an image file as the video's thumbnail, click the thumbnail to replace it, or remove it with its **x**.
* An **audio** item has a player and an **Edit metadata** button.

<figure><img src="https://1128240491-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZhE676hWpByB99kC4Us%2Fuploads%2Fgit-blob-cdd594c84c335524e939f56ed4f854edd0c61aa1%2Fpicture-item.png?alt=media" alt="A picture item open in the editor with the Edit metadata, Edit image and Edit crops buttons over the image and the original size below it" width="534"><figcaption><p>A picture item in the editor</p></figcaption></figure>

To change only the metadata of a media item without opening it, choose **Edit Media Metadata** (Ctrl+Alt+M) in its actions menu. To change the metadata of several media items at once, select them in a list and click **Edit metadata** in the action bar. The window works like the upload window, with **Save**, **Save & Close** and **Close** buttons.

### The media editor

The three buttons over a picture open the media editor on one of its tabs. The same editor opens from a picture in the body, in a featured media field or in a gallery.

* **Details / Metadata**: the picture and its metadata.
* **Edit image**: crop, rotate, flip and adjust the colours of the picture.
* **Edit crops**: the point of interest and the crops used by your subscribers.

The window title follows the tab, for example **Edit Crops**.

When you are finished, click **Done**. The changes are saved with the item.

### Editing metadata

On the **Details / Metadata** tab, change the values in the **Metadata** panel on the right. When you change something, **Apply** and **Cancel** buttons appear at the top of the panel. Click **Apply** to keep your changes. **Copy metadata** and **Paste metadata** at the bottom of the panel work as in the upload window.

<figure><img src="https://1128240491-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZhE676hWpByB99kC4Us%2Fuploads%2Fgit-blob-6c6f48df6f6d9772863689ac50f09375ddec66d0%2Fmedia-editor-metadata.png?alt=media" alt="The media editor on the Details / Metadata tab with the picture and the Metadata panel" width="999"><figcaption><p>Editing a picture's metadata</p></figcaption></figure>

### Editing the image

The **Edit image** tab changes the picture itself. The **Controls** panel has:

* **Crop**: draw a frame on the picture to cut it. Type the **Image size** in pixels, or click **Original**, **16 : 9**, **4 : 3** or **3 : 2** to fix the proportions. Click **Confirm crop** to apply it.
* **Rotate left**, **Rotate right**, **Flip horizontal** and **Flip vertical**.
* **Adjust colours**: sliders for **Brightness**, **Contrast** and **Saturation**.

You see each change in the preview straight away. Click **Apply** to save the edited picture, or **Cancel** to undo your changes.

<figure><img src="https://1128240491-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZhE676hWpByB99kC4Us%2Fuploads%2Fgit-blob-dd7381277b0cac3d4534d97fe6c98d1bfea85e9b%2Fmedia-editor-edit-image.png?alt=media" alt="The media editor on the Edit image tab with the crop, rotate and flip buttons and the colour sliders" width="999"><figcaption><p>Editing the image</p></figcaption></figure>

{% hint style="warning" %}
Changes on the **Edit image** tab replace the stored picture, and Superdesk makes the crops again from the new version. A crop on this tab cannot be smaller than the crop sizes your newsroom uses; Superdesk shows "Original size cannot be less than the required crop sizes." if it is.
{% endhint %}

### Editing crops

Your subscribers often need a picture in fixed shapes and sizes, for example a wide crop for a homepage and a square one for social media. Superdesk makes these crops, also called renditions, automatically. On the **Edit crops** tab you check and adjust them. Editing the crops does not change the picture itself.

{% stepper %}
{% step %}

### Set the point of interest

With **Original** selected, click the most important part of the picture, for example a face. Superdesk uses this point of interest to place the crops.
{% endstep %}

{% step %}

### Adjust a crop

Click one of the crops in the strip below the picture. Drag and resize its frame so that it shows what you want.
{% endstep %}

{% step %}

### Save

Click **Save** at the top to keep your crops, or **Cancel** to go back to the previous ones. Then click **Done**.
{% endstep %}
{% endstepper %}

If a picture is too small for a crop size, the crop is marked in red. This does not stop you from publishing; there are just fewer crops for that picture.

<figure><img src="https://1128240491-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZhE676hWpByB99kC4Us%2Fuploads%2Fgit-blob-584429996d6dd1037acdbef2c8e1395448a7038c%2Fmedia-editor-crops.png?alt=media" alt="The media editor on the Edit crops tab with the point of interest on the original and the strip of crops below" width="999"><figcaption><p>Editing crops</p></figcaption></figure>

Administrators set the crop sizes in **Settings** > **Metadata** > **Vocabularies** > **Image Crop Sizes**.

### Opening the original file

*Available since Superdesk 3.6.*

In the preview of a picture, the **Original** button opens the full-size file in a new browser tab, where you can look at it closely or download it. The preview opens from the **Preview** button in the editor's status bar, when your administrator has turned previews on. See [Previewing and printing](https://docs.superdesk.org/user-guide/superdesk-user-guide/content-management/creating-and-editing-content-items.md#previewing-and-printing).

<figure><img src="https://1128240491-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZhE676hWpByB99kC4Us%2Fuploads%2Fgit-blob-e8c5cd9c8aff9a220be8a9c067e51b61fd096178%2Fpreview-original.png?alt=media" alt="The preview of a picture item with the Original button above the image" width="1127"><figcaption><p>The Original button in the picture preview</p></figcaption></figure>

## Using media in an article

### Adding media to the body

{% stepper %}
{% step %}

### Place the cursor

Click in the body where the media should go.
{% endstep %}

{% step %}

### Upload the files

Click **Media** in the toolbar and upload your files as described in [Uploading media](#uploading-media). You can also drop files from your computer straight into the body.
{% endstep %}

{% step %}

### Check the crops

For each picture, the media editor opens on the **Edit crops** tab. Adjust the crops if needed and click **Done**.
{% endstep %}
{% endstepper %}

To use a picture, video or audio item that is already in Superdesk, drag it from Monitoring or Search into the body.

In the body, each media item is shown as a block with:

* a **Title**, if the field is set up to show titles,
* the media, with the **Edit metadata**, **Edit image** and **Edit crops** buttons when you hover over a picture,
* its **Alt text**, **Credit**, **Copyright holder**, **Assign rights** and **Copyright notice**,
* a **Caption** box, where you can write a caption of several lines.

To remove the media from the body, click the **x** at the top right of the block. This only removes it from the article; the media item stays in Superdesk.

<figure><img src="https://1128240491-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZhE676hWpByB99kC4Us%2Fuploads%2Fgit-blob-19f0addd93d6565c408dcf859b8951d6a45b8673%2Fbody-media-block.png?alt=media" alt="A picture in the article body with its title, metadata lines and caption" width="645"><figcaption><p>A picture in the body</p></figcaption></figure>

### Featured media

Some content profiles have a featured media field, used for the main picture or video of a story. Its name depends on your profile. Click **Drop items here or click to upload** to upload a file, or drag a media item from a list onto the field. Hover over the picture to edit its metadata, image or crops, and use the **x** to remove it.

### Galleries

A gallery field holds several pictures, videos or audio files, for example a photo series. Your administrator decides which media types a gallery accepts and how many items it can hold.

* To add media, click **Drop items here or click to upload**, or drag files or media items onto the gallery.
* Use the arrows on the sides to move through the gallery.
* Hover over a picture to use **Edit metadata**, **Edit image** or **Edit crops**. For video and audio, click **Edit metadata**.
* Click the **x** on an item to remove it from the gallery.

Administrators create gallery fields in **Settings** > **Metadata** > **Related content**, with the type **Media gallery**, and add them to a content profile.

## Media content profiles

*Available since Superdesk 2.7.*

Like articles, media items have content profiles. A newsroom can have one profile for each media type: picture, video and audio. The profile decides which metadata fields you fill in and which of them are required before the media item can be published. The picture profile also sets the fields of the upload window and of the media editor, while the fields required for an upload come from the server configuration.

If you think a field is missing or should not be required, ask your administrator. Profiles are set up in **Settings** > **Content Profiles**. See [Profiles for pictures, video and audio](https://github.com/superdesk/superdesk-docs-user-guide/tree/main/superdesk-user-guide/administration/content-configuration/content-profiles.md#profiles-for-pictures-video-and-audio).

## Metadata in the published file

*Available since Superdesk 2.8.*

Your administrator can set Superdesk up to write the item's metadata into the picture or video file when you publish it. The caption, credit, byline, copyright notice and other fields you filled in then travel with the file itself, in IPTC and XMP form, and stay there in every crop. Agencies and photo desks rely on this, because many systems read a picture's caption from the file and not from the article.

## For administrators

This section is for administrators.

### Media profiles and crop sizes

* Create media profiles in **Settings** > **Content Profiles** by choosing **Picture**, **Video** or **Audio** as the **Content Type**. Only one profile per media type is allowed. The fields of the picture profile are used in the upload window and the media editor (since 3.5). The fields required before an upload or a metadata edit is saved come from the server setting `VALIDATOR_MEDIA_METADATA`, not from the profile.
* Crop sizes are the items of the **Image Crop Sizes** vocabulary in **Settings** > **Metadata**. Without it, the **Edit crops** button is hidden.
* Gallery fields are **Media gallery** fields on the **Related content** tab of **Settings** > **Metadata**, with the allowed media types, **Allow multiple items** and **Max. number of items**.

### Settings

| Setting                                     | Where  | Effect                                                                                                                                                                        |
| ------------------------------------------- | ------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `PICTURE_METADATA_MAPPING`                  | Server | Maps item fields to file metadata fields. When it is set, Superdesk writes the metadata into every rendition of a picture or video on publish. Empty by default. *Since 2.8.* |
| `features.validatePointOfInterestForImages` | Client | Requires a point of interest that lies inside every crop before crops can be saved.                                                                                           |
| `features.editFeaturedImage`                | Client | Set to `false` to stop users from uploading or editing media in featured media and gallery fields.                                                                            |
| `features.preview`                          | Client | Shows the **Preview** button, and with it the **Original** button for pictures.                                                                                               |

The metadata already embedded in an uploaded picture (EXIF) is kept when Superdesk makes the crops (since 3.6).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.superdesk.org/user-guide/superdesk-user-guide/content-management/creating-and-editing-content-items/edit-media-items.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
