How can you re-size an image on the fly in CQ?


how can re-size image on fly in cq?  have few components using image associated page, components require different size same aspect ratio of same image.  don't want have dam create sizes on upload.

i suggest creating own mage resizing servlet, derived abstractimageservlet. can @ /libs/foundation/components/page/img.png.java inspiration, suggest full-fledged servlet registered combination of extensions need , appropriate selector.

 

you'll want use "named size selectors" rather putting pixel dimensions avoid potential denial-of-service attacks. , want use selectors rather query parameters - built-in image resizing code slow, , query parameters bypass dispatcher.



More discussions in Archived Spaces


adobe

Comments