Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
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