Changes to PictureRenderer.Optimizely

In version 3.2 of PictureRenderer.Optimizely it is possible to add any attribute to the rendered img element. This makes it possible to add e.g. custom data and itemprop attributes. Version 3.2 introduces the PictureAttributes object that may be used as an input parameter when calling @Html.Picture. It's in the PictureAttributes object where you can add … Continue reading Changes to PictureRenderer.Optimizely

On-page editing with Optimizely CMS on an externally hosted site

Did you know that you can enable on-page editing for a site that isn't hosted on the same server as the CMS? I'm not sure when this feature was introduced, as there isn't much documentation available. It took me several hours to figure out all the necessary steps. Hopefully, this article will save you some … Continue reading On-page editing with Optimizely CMS on an externally hosted site

Optimize images added in the rich text editor.

PictureRenderer for Optimizely CMS can be used to optimize images added in the rich text editor (TinyMce). In PictureRenderer.Optimizely v2.3 an XhtmlString extension is added that replaces img elements in the rich text content with a picture element. You enable this by creating a display template for XhtmlString properties. Create the file /Views/Shared/DisplayTemplates/XhtmlString.cshtml and add this: @using … Continue reading Optimize images added in the rich text editor.

PictureRenderer for Optimizely CMS 12

Say hello to PictureRenderer.Optimizely! The html helper that makes it super simple to render HTML Picture elements in your Optimizely CMS 12 solution. Images are automatically cropped and resized, and the browser will always select the most optimal image to use.The result is optimized (width, format, and quality), lazy loaded, and responsive images. If you … Continue reading PictureRenderer for Optimizely CMS 12

Control the cropping of your images with a focal point

The Image point editor for Optimizely/Episerver CMS can be used together with the Picture helpers in PictureRenderer.Optimizely or  ImageProcessor.Web.Episerver  to control the cropping of images.  If showing the same image in different height and width on your site, you might want to control how the image is cropped. Let's say you are showing super cool, … Continue reading Control the cropping of your images with a focal point