---
title: "extract-assets | Customer&#x27;s Canvas Hub"
canonical: "https://customerscanvas.com/docs/hub/printer-guide/pipelines/tasks/extract-assets/"
---

# extract-assets

> Learn how the extract-assets task extracts repository assets and saves them as artifacts.

This task is employed to extract multiple assets of a specified type from the repository and save them as artifacts.

## Parameters

- `assetType` (string) - The type of asset to be extracted, one of `Design`, `PrivateDesign`, `Image`, or `PrivateImage`.
- `assetIds` (array of strings) - The list of identifiers for the assets to be extracted.

These parameters support [argument interpolation](https://customerscanvas.com/docs/hub/printer-guide/pipelines/concepts/interpolation.md) following the common rules.

## Example

``` json
{
    "description": "Extract images",
    "name": "extract-images",
    "type": "extract-assets",
    "parameters": {
        "assetType": "Image",
        "assetIds": [
            "{{project.items.@.fields.imageId_front}}",
            "{{project.items.@.fields.imageId_back}}"
        ]
    },
    "outputArtifacts": [
        "result*"
    ]
}
```
