Create Optimized and Responsive Images in Umbraco

How to Create Optimized and Responsive Images in Umbraco

How to Create Optimized and Responsive Images in Umbraco

Every business owner is aware that they should implement responsive designs or images within their site, but very few consider it seriously. While creating an Umbraco site, it is very important to give the editors or content publishers the tools that they need to keep it in line with the constraints of the design. But this is not always very easy and if the design has to be responsive, things are even harder.

Today, in this blog, I will talk about various tools that can be used with Umbraco core that will help you to simply integrate responsive images in your Umbraco.

Umbraco powers the Image Cropper property edition, but it is capable of doing much more to help you create high quality and performant websites. Since web pages are getting bigger and bigger, it is very important for the developers to reduce the size of the page and images so that it has a fast loading time especially in the age of increased mobile users and responsive websites.

Thankfully, we have various tools with Umbraco that can help us to keep the webpage and images well optimized.


Image Cropper

If you have an Umbraco website and you have not used the Image cropper property editor then, you are surely missing out on something that is really great.  The Image Cropper uses the ImageProcessors. Web’s URL API in order to generate crops of images that are cached in auto cleaning diskcache mechanism that serves the cropped image on subsequent requests.


Slimsy:

This is a cool Umbraco package that developers caring about optimal web page performance should always consider. Any good developer is aware of the fact that performance is important and we too know the importance of creating responsive images. But the majority of websites do not bother. Since most projects have tight deadlines, developers complain that creating responsive images takes too much time.

But with Slimsy, everything is easy as after installing it, within 5 minutes you are ready to update your templates so that Umbraco handles everything for you. It is a neat package when used together with the ImageProcessor.Web and the build in Image Cropper in Umbraco. It helps to make the website images react to the viewport width and also the density of the pixel if supported by the client browser.

Target Potential Customers with Umbraco


Presets:

ImageProcessor.web offers the facility to translate the preset instructions that pass to the URL API. Presets assist you to configure the image output to a single location and also make it easy to tweak the output for higher performance. In order to set up the presets, you have to correct the configuration files that are installed on the website. A nugget package is available – the ImageProcessor.Web.Config that enables you to install the files. You will also find extensive documentation online, that will help you to set it yourself.


Pre-Processing:

All the methods discussed above involve post-processing and uploading of the images in the first instance of the page loading. This is 99% perfect, but there are still chances when a client or someone will upload a big image that may hamper the performance as ImageProcessor processes and saves it for the audiences to view. But there is definitely a way to deal with this. Umbraco offers various events that help to save media and the ImageProcessor’s fluent API can be used within these events to resize the images when they are saved in the media section.

I am sure that the above points will help to start making the most of the ImageProcessor within Umbraco and boost the performance of your site.

Leave a Reply

Your email address will not be published. Required fields are marked *

CommentLuv badge