Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Image rendition path

Avatar

Level 3

Hi,

If I want to use image rendition I have to append its path to the image path.

E.g. /content/dam/my-project-name/img1.jpg/jcr:content/renditions/cq5dam.thumbnail.319.319.png

I don't really like this because it exposes internal structure.

I think it would be more natural to have something like this:

/content/dam/my-project-name/img1.cq5dam.thumbnail.319.319.png.jpg

or 

/content/dam/my-project-name/img1.jpg/cq5dam.thumbnail.319.319.png

But it doesn't work.

The only way I see to hide 'jcr:content/renditions' - use /etc/map

Is there other options/apptoches?

1 Accepted Solution

Avatar

Correct answer by
Administrator

For "/content/dam/path/to/image/example.png/jcr:content/renditions/cq5dam.web.1280.1280.jpeg"

Use :- "/content/dam/path/to/image/example.png.imgw.1280.1280.jpg".

Check this documentation:- https://github.com/HeroDigital/renditions-servlet

 

I am sure this would help you.

~kautuk 



Kautuk Sahni

View solution in original post

1 Reply

Avatar

Correct answer by
Administrator

For "/content/dam/path/to/image/example.png/jcr:content/renditions/cq5dam.web.1280.1280.jpeg"

Use :- "/content/dam/path/to/image/example.png.imgw.1280.1280.jpg".

Check this documentation:- https://github.com/HeroDigital/renditions-servlet

 

I am sure this would help you.

~kautuk 



Kautuk Sahni