/
Digizuite™ Dynamic Image Resize

Digizuite™ Dynamic Image Resize

Do you need dynamic or on-demand resize?

We have a solution for you which must be used together with a CDN. 

So what is described here must act as an origin to a CDN for it to not be to costly. The CDN must be caching all unique URLs.

How it works

Please contact Digizuite for getting the resize URL. When you have this URL then you can manipulate your images in the following way (docs also here: How to use assetstreamer (stream qualities / download source file) ):

 

Functional Approach

The above approach can also be mapped to a functional approach. Query parameters are then instead an integrated segment in URL (as know from cloudflare and others)

  • Important changes are

    • We have added filename.extension to the URL to control filename in the Content-Disposition header in the response

    • mimeType is no longer applicable, and the type is controlled by the extension of the filename provided. 

    • The query parameters are now a segment after /assets/ and before /filename.extension where the parameters are comma separated.

  • Example: [DAM_RESIZE_URL]/assets/assetID=[AssetId],mediaformatid=[MediaFormatId],destinationid=[DestinationId],width=[Width],height=[Height],quality=[Quality],aspecttype=[AspectType],timestamp=[LastUpdated]/filename.extension

Configuring it in Azure

1- Create Azure Function in a customer Azure Portal. Give it a name, select the below and ensure that region is corresponding to the one of the customer.

2- Send the Publishing Profile to R&D

 

3- When R&D have deployed to your azure function, then you must create a CDN (Microsoft CDN). You already have the Azure Function web app which must be the origin.

  • Important is to receive your Client ID from R&D and add this as Origin Path /api/integrations/resize/{client_id}

Create the Origin like this an ensure Origin Type as ‘Web App’.

Configure Origin path like this:

4- Ensure that Caching is correct. It must Cache every unique URL and then

And then also ensure that it caches for at least 60 days if nothing else has been stated:

 

5- Now start to use (following the details in How it works). Simply take the ‘Endpoint hostname’ and start to use it.