Skip to main content

Set up Image Service

Introduction

By default, the Image Service is already set up to allow uploading and managing images. However, you have to configure an Acquisition Profile if you wish to use the Ingest functionality with images or programmatically upload images from a pre-defined blob storage using the RabbitMQ EnsureImageExists command.

To configure the required acquisition settings in the Management System, open your Management System UI in a web browser. From the home screen, navigate to Settings / Image Service Settings / Acquisition:

Image acquisition under Settings

Settings

Acquisition Profile

Image acquisition profile defines the following properties:

Properties common for every storage provider

PropertyDescription
TitleA human-readable profile identifier
Storage ProviderThe storage provider type (see below)
Root PathAn optional value that is used to define a sub-folder from which the images should be downloaded. If no value is specified, the images are acquired from the root storage location. If a value is specified, it must be a single folder name or a path, e.g folderName/anotherFolder. In this example, the images are acquired relatively to this folder.

Image service supports multiple Storage Providers (depending on the selected storage provider there are additional configuration options):

  • Mosaic Hosting Service - Azure
  • Azure Storage
  • AWS
tip

We recommend to create your storage using Mosaic Hosting Service.

Mosaic Hosting Service

The easiest way to set up an image acquisition profile is to use Mosaic Hosting Service Storage as the storage provider.

In this case, all you need to specifiy is the container and optionally the root path. Mosaic Storage comes with a default container names image-sources specifically for this purpose.

Example Acquisition Profile / Mosaic Hosting Service Azure

Acquisition Profile / Mosaic Hosting Service Azure

Azure Storage

You can use any Azure Storage Account by specifying its account name and key.

See also: Storage with Microsoft Azure.

Azure Storage specific properties

PropertyDescription
Storage Account NameThe username/account name
Storage Account KeyThe corresponding password/access key for the storage account above.
Container NameWhich storage container to use. A Storage Account can have multiple Containers used for different purpose, e.g. source-images

Example Acquisition Profile / Azure

Acquisition Profile / Azure

AWS

You can use any AWS S3 bucket by specifying the access key.

See also: Storage with AWS.

AWS specific properties

PropertyDescription
Access Key IdAccess Key Id
Access KeyThe corresponding password/access key.
Bucket nameWhich bucket to use. Multiple buckets can be accessible with the same access key for different purpose. Similar to Azure Containers.
RegionAWS Region to use for data storage.

Example Acquisition Profile / AWS

Acquisition Profile / AWS

Image Upload Webhook

Image Service supports a webhook to validate the image metadata before it is uploaded to the service (see Image Service / Webhook for more details).

To configure a webhook, go to the Admin Portal, select the environment, and then the Image Service. Select the "Image Upload" and proivde the URL for the webhook.

Image service settings

Image Service Webhook Settings

For more information on how to implement a webhook securely, please refer to the Webhooks article.