Image rendition in sharepoint server 2013

configure image rendition sharepoint online

In this article I have explained how to configure and use Image rendition feature in publishing site collections in SharePoint 2013.

Image rendition:
– Image rendition helps to display the image with different height and width of the same image on different pages in a publishing site.

– When you create an image rendition, you specify the width and/or height for all images that use that image rendition.

– Image renditions are available for all the images to upload into the SharePoint libraries.

Prerequisites for image renditions:
– BLOB Cache

Now let’s go and see how to enable cache settings for a web application
Open IIS Manager
Navigate to the IIS web site -> Click Explore


 configure image rendition sharepoint online
configure image rendition sharepoint online

Open Web.config file
Find the below line
<BlobCache location=”C:\BlobCache\14″ path=”\.(gif|jpg|jpeg|jpe|jfif|bmp|dib|tif|tiff|themedbmp|themedcss|themedgif|themedjpg|themedpng|ico|png|wdp|hdp|css|js|asf|avi|flv|m4v|mov|mp3|mp4|mpeg|mpg|rm|rmvb|wma|wmv|ogg|ogv|oga|webm|xap)$” maxSize=”10″ enabled=”false” />
Set Enable = “True”
<BlobCache location=”C:\BlobCache\14″ path=”\.(gif|jpg|jpeg|jpe|jfif|bmp|dib|tif|tiff|themedbmp|themedcss|themedgif|themedjpg|themedpng|ico|png|wdp|hdp|css|js|asf|avi|flv|m4v|mov|mp3|mp4|mpeg|mpg|rm|rmvb|wma|wmv|ogg|ogv|oga|webm|xap)$” maxSize=”10″ enabled=”true” />

Now the cache settings is successfully enable under web application

– Publishing site collection / Publishing feature enabled site

First steps let’s create a publishing site collection.

sharepoint 2016 image rendition
sharepoint 2016 image rendition

After successful creation of publishing site collection.

Enable Sharepoint publishing features under site collection features and manage site collection feature


sharepoint online image rendition
sharepoint online image rendition

– Asset library
Asset library is useful for storing rich media assets for example images, videos and audio files
On site settings -> Click Add an app -> Pick Asset library template app

sharepoint online office 365 image rendition
sharepoint online office 365 image rendition

Click Create

 configure image rendition sharepoint 2013
configure image rendition sharepoint 2013

Next step let’s go and creating image rendition
Open site settings -> Under look and feel -> Click Image rendition

Image rendition sharepoint 2016
Image rendition sharepoint 2016

Click New
Provide the width and height of the image rendition



configure image rendition sharepoint online office 365
configure image rendition SharePoint online office 365

Click Save
So now the Image rendition has been created successfully

sharepoint 2013 image rendition
SharePoint 2013 image rendition

“logo” has been successfully created
Edit Image rendition
Click on the Edit icon

sharepoint 2016 image rendition
SharePoint 2016 image rendition

Change the given width and height of the created rendition and click Save

sharepoint online image rendition
SharePoint online image rendition

So now the image rendition has been “Edited” successfully.

sharepoint online image rendition 1
SharePoint online image rendition

Let’s go and upload a sample image into the asset library and pick the rendition
After successful upload of an image -> Click Edit renditions

sharepoint online image rendition
SharePoint online image rendition

So the rendition has been created successfully for the uploaded image automatically

image renditions sharepoint online
image renditions sharepoint online

You can also “Crop the image” using Click to change option below image

how to resize image in sharepoint 2013
how to resize image in sharepoint 2013

Crop it and Click Save

enable image renditions sharepoint 2013
enable image renditions sharepoint 2013

In the ribbon tab also you can also edit rendition option while selecting the image

sharepoint 2013 image renditions not available
sharepoint 2013 image renditions not available

Next step how to use image rendition in sharepoint page
Click on site action gear icon -> Add page
On the page content
Click on the top ribbon to insert picture from the following options

sharepoint 2013 image renditions
sharepoint 2013 image renditions
sharepoint 2016 image renditions
sharepoint 2016 image renditions

Click Insert
On the Image tab -> Pick Rendition

enable image renditions sharepoint online
enable image renditions sharepoint online

Click Save -> Publish
So as of now you can able to use the same image with different height and width on different pages using this feature.
How to use the Image rendition on image tag
Code:
<img src=” /sites/imr/PublishingImages/17457619_1377913145602400_6065847167570624938_n.jpg? RenditionID=5” />


Read some SharePoint tutorials below:

Happy learning !……


You May Also like the Following SharePoint Online Tutorials:

Leave a Reply