Sharepoint Online Set Header Compact Powershell

10.10.2019by admin
Sharepoint Online Set Header Compact Powershell Average ratng: 4,9/5 6601 reviews

Please hear me outI’ve been around the SharePoint space long enough to have read at least 30-40 different blog posts talking about why the list view threshold limit exists in the first place, correct ways to provision libraries so you don’t run into it and how you can set yourself up for success if you exceed it.

By Randy Drisgill, MVPScenario:I see it all the time: SharePoint content owners create sites using images that are much too large for Web consumption. It’s easy to understand why this happens.

Sally Site-Owner gets a photo or image from the marketing department that was created for print or some other high-resolution format. Sally uploads the image to SharePoint and simply resizes its height and width using the ribbon controls to make the page look nice. Of course, resizing an image in this way doesn’t actually make the file size any smaller, and now end users (potentially even users on slow or metered mobile connections) will have to patiently download the large image to see the page.SharePoint 2013 answers this problem with a SharePoint Server publishing feature known asimage renditions. With image renditions, you can add images to a library and easily add them to pages using various predetermined widths and heights withoutdownloading the full-sized image.To use image renditions, you need a few things:. A SharePoint Server site with the publishing features activated.

A picture library to test in. You can use the default Images library, or you can create a new picture library from Settings Site contents Add an app. Blob Caching needs to be turned on in your web.config file (so you will need access to the server SharePoint is installed on)Steps:I’ll assume the first two are pretty easy to figure out without me going through the steps.

OnlineOnline

To turn on Blob Caching, simply navigate to the web.config file for your SharePoint site on the physical server. It is usually located in a directory similar to C:inetpubwwwrootwssVirtualDirectories80.

You can use IIS to help find the directory if you want. Open web.config in an editor like Notepad ( when you hit Save, IIS will reset the SharePoint site, so make sure not to do this on production during peak hours) and use Control-F to find the first instance of “ Site settings Look and Feel Image Renditions. Thereshould be a few predefined sizes you can use. To create your own, simply click Add new item, enter a name, width and height, then click Save. Now, when you add images to a picture library, you will have a rendition that matches that size that you can work with.To work with the image renditions, navigate to your picture library and upload a picture.

Sharepoint online set header compact powershell download

Sharepoint Online Set Header Compact Powershell File

Once the picture thumbnail shows in the library,hover over it, click theellipsis in the bottom-right, and then clickEdit Renditions. With your image renditions set up and configured, now you can select from the different size options when you insert an image into a publishing page. After editing a page and inserting the image, from the ribbon you would just click theImage tab and thenchoose from the Pick Rendition dropdown.Because an image rendition is being used, the image in my example is actually a 150px by 150px file and should download quicker than a full-sized image. Pretty cool, right? What if you want to reference the image rendition directly using code or without the ribbon?