Enabling Extension for DM S7 Images through rules set | Community
Skip to main content
Saravanan_Dharmaraj
Community Advisor
Community Advisor
July 10, 2023

Enabling Extension for DM S7 Images through rules set

  • July 10, 2023
  • 1 reply
  • 2039 views

I am trying to set the images from DM can be accessed with extension like .jpg. The DM serves the images like below without any extension 

https://s7d1.scene7.com/is/image/siliconlabssandbox/hiking_2

 

To enable the extension with preprocessing rules , i have created the below rules set xml and uploaded to the catalog through Classic App as mentioned in documentation.

<?xml version="1.0" encoding="UTF-8"?> <ruleset> <rule> <expression>(.*)\.jpg(.*)$</expression> <substitution>$1\2</substitution> </rule> </ruleset>

 

I am trying to hit https://s7d1.scene7.com/is/image/siliconlabssandbox/hiking_2.jpg , it throws me "

Unable to find image

 

Any idea on how to make it work? Thanks

 

Documentation

https://experienceleague.adobe.com/docs/dynamic-media-developer-resources/image-serving-api/image-serving-api/rule-set-reference/c-rule-set-reference.html?lang=en

 

 

 

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

1 reply

Adobe Employee
July 11, 2023

hi @saravanan_dharmaraj ,

 

Can you please try adding extension for both jpg and jpeg. And then retry.

 

Hope this works.

 

Thanks,

Nikita Garg

Saravanan_Dharmaraj
Community Advisor
Community Advisor
July 11, 2023

@nikita___garg Unfortunately that didnt work too. 

<?xml version="1.0" encoding="UTF-8"?> <ruleset> <rule> <expression>(.*)\.jpg(.*)$</expression> <substitution>$1\2</substitution> </rule> <rule> <expression>(.*)\.jpeg(.*)$</expression> <substitution>$1\2</substitution> </rule> </ruleset>