The /audio/artwork Robot

Transloadit offers a variety of features to reduce audio size while maintaining quality, as well as add effects like loops or watermarks.

The /audio/artwork Robot extracts the embedded cover artwork from audio files and allows you to pipe it into other Steps, for example into /image/resize Steps. It can also insert images into audio files as cover artwork.

Parameters

Name Type Default Description
method String "extract" What should be done with the audio file. A value of "extract" means audio artwork will be extract. A value of "insert" means the provided image will be inserted as audio artwork.

Example use cases

Our /audio/artwork Robot can be used in combination with other Robots, to create powerful workflows unique to your use case.
Here are a few example scenarios, and the required the Assembly Instructions to implement them.
You can also try demos of these examples right here, live on our website.

Extract the cover art from an audio file

{
  "steps": {
    "artwork": {
      "robot": "/audio/artwork",
      "use": ":original",
      "result": true
    }
  }
}

Insert cover art into an audio file

{
  "steps": {
    "imported_image": {
      "robot": "/http/import",
      "url": "https://transloadit.com/assets/images/robots/170x170/audio-artwork.jpg"
    },
    "insert_artwork": {
      "robot": "/audio/artwork",
      "use": {
        "steps": [
          {
            "name": ":original",
            "as": "audio"
          },
          {
            "name": "imported_image",
            "as": "image"
          }
        ],
        "bundle_steps": true
      },
      "method": "insert"
    }
  }
}

Related blog posts

Over the years we wrote the following posts about Our /audio/artwork robot on our blog:

Did you know?

You can easily combine Robots to create powerful workflows, unique to your business.
This is the power of Transloadit.