> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ovalbee.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.ovalbee.com/_mcp/server.

# Export images

> Exports image assets from an OvalBee dataset to an existing Supervisely dataset. The node uploads image files and all annotations of each asset merged into one.

## Overview

Exports image assets from an OvalBee [dataset](/node-library/nodes/dataset-ops-dataset)
to an existing [Supervisely dataset](https://docs.supervisely.com/data-organization/project-dataset/data-structure#projects-and-datasets).

The **Delete source assets** option removes only successfully exported assets from the source OvalBee dataset.

Use it after creating or selecting a Supervisely labeling dataset.

```mermaid
flowchart LR
  n1["Supervisely dataset"] --> n2["Export images"]
```

## Prerequisites

| Requirement                 | What you need                                                                                       |
| --------------------------- | --------------------------------------------------------------------------------------------------- |
| **Supervisely credentials** | An existing `supervisely` secret with write access to the destination.                              |
| **Destination dataset**     | An existing Supervisely **dataset** URL or ID. Projects and collections are not valid destinations. |

## How it works

Reads image assets from the source OvalBee dataset, limited to **Images Count** when it is set.

Adds any missing classes and tags to the destination project meta when annotations are exported.

Uploads the images with their annotations, applying the extra tag when one is configured.

Records an export baseline on each uploaded image, then removes the exported assets from the source dataset when **Delete source assets** is on.

## FAQ

#### Can I export into a project or collection?

No. The destination must be a Supervisely dataset URL or ID.

#### What happens to classes and tags that the destination does not have?

They are added to the destination project meta before upload, so annotations keep their classes.

#### What does Delete source assets remove?

Only assets that uploaded successfully. They lose their membership in the source OvalBee dataset, and nothing is removed when the export produced no images.

#### What is the export baseline for?

Each exported image is stamped with the time of its export. Nodes such as Filter labeled images use that stamp to tell later labeling work from the export itself.

#### Why is the extra tag rejected?

**Extra tag value** is required whenever **Extra tag name** is set. Fill both fields or leave both empty.

## Inputs

**`From dataset`** `dataset` — required

Source dataset the exported images are taken from. Key: `DATASET`.

---

**`To Supervisely dataset`** `string` — required

Supervisely dataset the images are uploaded to, as a URL or a numeric ID. It must already exist, and a project or a collection is not accepted here. Key: `SLY_URL`.

---

**`Supervisely credentials`** `secret` — required

Your Supervisely server address and API token, stored as a secret. Allowed credential types: `supervisely`. Key: `SLY_SECRET`.

---

**`Images count`** `integer`

How many image assets to upload. Leave empty to export every image in the dataset. Minimum: `0`. Key: `IMAGES_COUNT`.

---

**`Export annotations`** `boolean` — default: true

Upload the annotations of each image too. All annotations of one image are merged into a single Supervisely annotation. Key: `WITH_ANNOTATIONS`.

---

**`Delete source assets`** `boolean` — default: false

Remove successfully exported assets from the source OvalBee dataset after upload. Key: `DELETE_SOURCE`.

---

**`Extra tag name`** `string`

Extra tag name added to every uploaded image, on top of the tags its asset already carries. Key: `EXPORT_TAG_NAME`.

---

**`Extra tag value`** `string`

Text stored under that tag name. Required once Extra tag name is set. Visible when `EXPORT_TAG_NAME` is not empty. Key: `EXPORT_TAG_VALUE`.

---

## Outputs

**`Supervisely Dataset ID`** `number`

ID of the target Supervisely dataset. Key: `SLY_DATASET_ID`.

---

**`Supervisely Dataset URL`** `string`

URL of the target Supervisely dataset. Key: `SLY_DATASET_URL`.

---

## JSON config

Machine-readable node interface for automation and advanced usage.

#### Show JSON

```json
{
  "name": "Export images",
  "description": "Exports image assets from an OvalBee dataset to an existing Supervisely dataset. The node uploads image files and all annotations of each asset merged into one.",
  "category": "Supervisely",
  "namespace": "supervisely",
  "templateKey": "supervisely/export_images",
  "version": "v1",
  "inputs": [
    {
      "key": "DATASET",
      "label": "From dataset",
      "type": "dataset",
      "description": "Source dataset the exported images are taken from.",
      "required": true,
      "default": null,
      "visibleWhen": null,
      "options": {
        "creatable": false
      }
    },
    {
      "key": "SLY_URL",
      "label": "To Supervisely dataset",
      "type": "string",
      "description": "Supervisely dataset the images are uploaded to, as a URL or a numeric ID. It must already exist, and a project or a collection is not accepted here.",
      "required": true,
      "default": null,
      "visibleWhen": null
    },
    {
      "key": "SLY_SECRET",
      "label": "Supervisely credentials",
      "type": "secret",
      "description": "Your Supervisely server address and API token, stored as a secret.",
      "required": true,
      "default": null,
      "visibleWhen": null,
      "options": {
        "types": [
          "supervisely"
        ]
      }
    },
    {
      "key": "IMAGES_COUNT",
      "label": "Images count",
      "type": "number",
      "description": "How many image assets to upload. Leave empty to export every image in the dataset.",
      "required": false,
      "default": null,
      "visibleWhen": null,
      "options": {
        "type": "integer",
        "min": 0
      }
    },
    {
      "key": "WITH_ANNOTATIONS",
      "label": "Export annotations",
      "type": "boolean",
      "description": "Upload the annotations of each image too. All annotations of one image are merged into a single Supervisely annotation.",
      "required": false,
      "default": true,
      "visibleWhen": null
    },
    {
      "key": "DELETE_SOURCE",
      "label": "Delete source assets",
      "type": "boolean",
      "description": "Remove successfully exported assets from the source OvalBee dataset after upload.",
      "required": false,
      "default": false,
      "visibleWhen": null
    },
    {
      "key": "EXPORT_TAG_NAME",
      "label": "Extra tag name",
      "type": "string",
      "description": "Extra tag name added to every uploaded image, on top of the tags its asset already carries.",
      "required": false,
      "default": null,
      "visibleWhen": null
    },
    {
      "key": "EXPORT_TAG_VALUE",
      "label": "Extra tag value",
      "type": "string",
      "description": "Text stored under that tag name. Required once Extra tag name is set.",
      "required": false,
      "default": null,
      "visibleWhen": {
        "key": "EXPORT_TAG_NAME",
        "operator": "notEquals",
        "value": null
      }
    }
  ],
  "outputs": [
    {
      "key": "SLY_DATASET_ID",
      "label": "Supervisely Dataset ID",
      "type": "number",
      "description": "ID of the target Supervisely dataset.",
      "artifact": false,
      "badge": false,
      "badgeOpens": null,
      "hidden": false
    },
    {
      "key": "SLY_DATASET_URL",
      "label": "Supervisely Dataset URL",
      "type": "string",
      "description": "URL of the target Supervisely dataset.",
      "artifact": false,
      "badge": false,
      "badgeOpens": null,
      "hidden": false
    }
  ]
}
```