Showing posts with label Image rendition in SharePoint 2013. Show all posts
Showing posts with label Image rendition in SharePoint 2013. Show all posts

Tuesday, November 12, 2013

Shape images using Image renditions technique in SharePoint 2013

Generally SharePoint content writers can get images from other departments like marketing or business development users in some high resolution formats. Content writers can upload that image to the SharePoint after re-sizing the image to their need. In SharePoint 2013 we are having the option to re size the image in site itself. We can re-size the image by using image rendition techniques in SharePoint. By using this we can add images to library and we can re size them in various sizes before adding them to pages.
To use image renditions we have to enable publishing feature and BLOB cache. We can turn on the BLOB cache in Web.config file. To enable blob cache, navigate IISManager and select site, explore to content view. Edit web.config file using any text editor. Search for “<BlobCache” tag, in the line we’ll see enabled=”false”. Change that to “true”, save the file.



By enabling the Publishing feature in Site collection we can “Image Renditions” link in “Look and Feel” section of Site Settings page.


By clicking on the Image Renditions link we’ll navigated to Image Renditions page. We can see default Display Templates with height and width. To create new layout, Click on “Add New Item” link and need to provide height and width.



To crop images, Navigate to picture library, select the image to crop and select “Edit Renditions” in top ribbon “Design” section.



We can see the image in the available Display Templates formats as shown below.



To use renditions, Add image to SharePoint publishing page and Select “IMAGE” on the top ribbon, click on “Pick Renditions” button on top ribbon. We can select the template as our requirement.


Thursday, May 9, 2013

SharePoint 2013-"The blob cache is not enabled in this web application. Image renditions will not be generated until the blob cache is enabled. For information on turning on the blob cache, please review the product documentation."

Image Rendition is new feature in SharePoint 2013, those users can re size the images to a fix predefined position to use them in web parts or pages. So that it can help us to improve the user experience of site by changing the image sizes. Using Image renditions we can save the image in different number of scaled variations. Dynamic rendering of the image will effect on the performance of the site. We can fix this by using image rendition.
We have to enable BLOB cache for image rendition. We can check Image rendition in Site Settings -> Image rendition in “Look and Feel” group.

 An Error message will be shown on the top of the page saying that “The blob cache is not enabled in this web application. Image renditions will not be generated until the blob cache is enabled. For information on turning on the blob cache, please review the product documentation”, if we are not enabled the blob cache.

Blob cache is a disk based caching feature. It will eliminate the database round trips in SharePoint. It will load the data from DB and saves on the web client and serves from cache. Generally Blob cache objects are images, Audio or Video files.
To enable Blob cache, Go to IISManger (Run -> inetmgr)

Go to site that need to enable Blob cache. Explore the site, find the web.config file.

Search for “BlobCache”, go to end of the line and make “enabled” value from “false” to “true” 


To use image rendition, publishing feature must be activated in the site.