Dynamic Renditions Based on Mime Type

federicom953713

12-04-2020

Hi,

Currently we are working on AEM 6.5.2 which is host on the new Cloud but is not configure as Adobe Experience Manager Assets as a Cloud Service (so to upload images we use the Upload Workflow). We have the Scene7 mode  (not Hybrid).

We use Image Preset in order to configure the Dynamic Renditions that are created every time we upload an asset.

 

It is possible to add conditions over the Images Presets created based on the MIME Type of the asset that is being uploaded?

For example if the Asset MIME Type is GIF we do not want to create the Images Presets with MIME Type JPG

 

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

VikramGaur

Employee

15-04-2020

Hi,

 

On "DAM Update Asset workflow", there is a step that created Dynamic renditions : Dynamic Media Process Image Assets

Either you need make modification on the Handler that created Dynamic Rendition [1] or you need create a custom workflow Launcher (as it works on conditions), it detects GIF format and based on the condition, it can enable or disable features.

[1] : An example is given on this documentation : https://docs.adobe.com/content/help/en/experience-manager-65/assets/extending/media-handlers.html

[2] : Creating a workflow launcher : https://docs.adobe.com/content/help/en/experience-manager-65/assets/extending/media-handlers.html

 

Thanks,

Vikram Gaur

Answers (1)

Answers (1)

SameerBhalerao

01-06-2020

Hi,

 

If you are using dynamic media to get the dynamic renditions of assets, you can always fmt parameter to get the desired mimetype of the image. You can have a look at https://docs.adobe.com/content/help/en/dynamic-media-developer-resources/image-serving-api/image-ser...

 

On the other hand you can definitely do mimetype conditional upload to DM if you are looking for that functionality. This is mostly around blacklisting some assets to be uploaded to DM.

 

Thanks!