Image Rendition is a great new feature to SharePoint 2013, giving you the tools to optimize images in order to improve users experience to your website.

Image Rendition gives you control over the size of your images and allows you to further crop images to get the results you need. Images can be fixed to certain sizes for WebPart use or for use on SharePoint page.

Not only does Image Rendition allow you to use very simple code to get your website images displaying quickly and with the specific look you desire, it also includes features to improve user experience for mobile devices with Device Channels Image Renditions.

By using Device Channel Renditions you can create smaller image sizes designed specifically for mobile use. This allows the mobile user to browse the smaller version, increasing the overall performance for the device they are using. Image Rendition enables you to have large files stored within your website along with smaller scaled variations for mobile users.

When using Image Rendition you will have to enable BLOBCache to improve performance. To enable BLOBCache:

  1. Open Web.config file for the web application
  2. Locate BLOBCache line and set enabled = “true”
  3. Set the folder path to another folder or keep the default c:\BlobCache\14 folder.

Once you have enabled BLOBCache you should then define Image Rendition for your Site Collection. You can do this by navigating to Site Settings – Look and Feel  – click Image Rendition. Here you will find several default renditions. However, you can also define your own renditions nd specify the look of each rendition individually.

You can also edit images directly, here’s how:

  1. Go to your Image Library
  2. Select your image
  3. Open its Menu
  4. Select Edit Renditions here you will see a preview of how your image will look with each rendition and you can edit any renditions from here too. You can also use the cropping tool on your image from this location, to crop out any unwanted areas.

Image Rendition supports a variety of file types including gif, jpg, bmp, png, tiff, wdp and video files types, such as mp3, mp4, wma, wmv, avi, webm, asf, ogg.  All files are stored in: SiteCollection/_catalogs/masterpage/PublishingImageRenditions.xml.

Here you will be able to view the file type, size, name and ID. It will also show what the next ID in line is when you create a new Image Rendition. Image Rendition also supports video files which work in the same way as an image would.

Overall, Image Rendition will save you time when trying to format your images to the size you require, especially when your images need to be set to a certain size. Image Rendition can help to make sure all images are formatted correctly no matter who is adding them to your site. It will also free up space with files being smaller but still retain the same quality as a larger file.  Most importantly it will improve user experience across all devices.

 

Like this post? Share it!