Dynamic Renditions Based on Mime Type | Community
Skip to main content
federicom953713
April 12, 2020
Solved

Dynamic Renditions Based on Mime Type

  • April 12, 2020
  • 2 replies
  • 3454 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by vikram1285

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

2 replies

vikram1285Adobe EmployeeAccepted solution
Adobe Employee
April 15, 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

Adobe Employee
June 2, 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-serving-api/http-protocol-reference/command-reference/r-is-http-fmt.html

 

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!