Details
-
Improvement
-
Resolution: Won't Do
-
Neutral
-
None
-
None
-
None
-
None
Description
When working with images in CKeditor, there is option to set width-height of image, but this will only apply "style" parameter to image. If an editor who don't care about resizing images will upload 10MB picture, same picture is going to be loaded. Currently there is no way to apply renderer (image variation for this).
Image itself is stored in jcr in text in format like this:
<p><img alt="" src="${link:{uuid:{cfa6f2ee-5de2-4088-ae5f-22a6c27c0126},repository:{corpblogs},path:{/jan-haderka/20--life-changing-tweaks-for-magnolia-editors-and-developers/images0/photo},nodeData:{},extension:{png}}}" style="height:1850px; width:3264px" /></p>
will be nice to have function to apply image variation (renderer) to this image(s).
something like:
imgfn.rendererForImagesInText(content.body,"thumbnail")
Checklists
Acceptance criteria