Since Image Rendering relies on other features in Sharepoint Server 2013, you must ensure that you meet the prerequisites in this section before proceeding with the procedures described in this article. Prerequisites:
• To add a website set in the form of Image Rendering, you must use the website set template of the publishing portal or product catalog to create a website set. Alternatively, you must enable the publish feature on the website set that you want to use image rendering. For more information, see overview of publishing to the Internet, Intranet, and exists websites in the technet library.
• The configured blob cache disk-based blob cache is used to control Binary large objects (BLOB) (such as common images, audio and video files, and other files used to display webpages (for example. CSS file and. JS files. Blob caching must be enabled on front-end web servers where Image Rendering is required. If blob caching is not enabled, the original image is always used. For more information, see configure cache settings for Web applications in the technet library.
• The resource library (recommended) can be used as a resource library template to easily store, organize, and find rich media assets (such as, audio, or video files. For more information, see settings on office.com to store image, audio, or video files.
1. My test site is the release site. Skip the first prerequisite. Configure blob cache, open web. config under the Port, find the following node, and set enable to true:
Complete node:
<BlobcacheLocation= "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" />
2. Go to website settings, find image renditions in look and feel, and click to enter:
3. Click Add new item to add a rendering format, for example:
4. Fill in new rendering attributes, such:
Enter the name and width/height attribute of the rendering form respectively;
5. Open the test page and insert an image from Sharepoint;
6. Select the image in the site Asset Library. The library type is the recommended resource library (later I tried to find the document library type, but the list attachment is not good, and the external link is not good );
7. You can select the added image, select image rendition on the image tab, and select the custom rendering form;
8. Let's take a big picture to see all the rendering forms. Of course, we can also edit the added rendering forms:
9. Edit the added rendering format and click to change, for example:
In particular, if the representation is modified here, all the images that use this representation will be displayed following your modifications;
10. You can select the image capture position (which is intercepted from the center by default), for example:
11. We can also use the label format and the rendering format, as shown below:
Of course, we can also use/Site % 20 asset/1.jpg? Renditionid = 5 in the SRC format;
12. display in the form of presentation. In fact, the picture is still the one, but it has already been presented according to our definition;
13. Open the image directly in the browser, for example:
Summary
the above is a brief introduction to the sharepoint2013 presentation form. We can present images differently. Moreover, Sharepoint caches images through its own mechanism, this greatly improves the website loading speed and brings us a better user experience.