Expand my Community achievements bar.

Enabling Extension for DM S7 Images through rules set

Avatar

Community Advisor

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-se...

 

 

 

2 Replies

Avatar

Employee Advisor

hi @Saravanan_Dharmaraj ,

 

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

 

Hope this works.

 

Thanks,

Nikita Garg

Avatar

Community Advisor

@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>