Image rendition path | Community
Skip to main content
Anton_Smulskiy
New Participant
October 7, 2016
Solved

Image rendition path

  • October 7, 2016
  • 1 reply
  • 1246 views

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?

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 kautuk_sahni

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 

1 reply

kautuk_sahni
kautuk_sahniAccepted solution
Employee
October 10, 2016

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