Thumbnails for New Uploads to Picture Library Appearing Smaller than Older Uploads

Brass Contributor

We upgraded from SP13 to SPO at the start of the year. I have a Picture Library app on a modern Communications site where all of my old pictures from SP13 migrated with big, full-res thumbnails in Tiles library views. But all new uploads to this library native to SPO are displaying smaller, compressed, and blurry. I've been searching for answers for more than a month with no luck, and hoping someone who has encountered this previously may be able to help me sort it out.

 

Screenshot: Tiles view of my Picture Library with example low-res and high-res thumbnails.

Thumbnails in Tiles View.png

 

The only difference I can spot between the images that work as desired and the ones that don't appears to be a Dimensions property in the info pane for all the old, migrated images - that's missing for the recent uploads. They're all JPG in the 150-250kb file size range, 600x250px. Downloading a copy of an image with the larger thumbnail and re-uploading it to the same library with a new name renders it in the smaller, blurry thumbnail. My working suspicion is that the new SPO library isn't creating/importing this Dimensions property on upload, the library is using that property to inform how it renders the thumbnails, and with it missing it's unable to create those higher-quality thumbnails we want. And I can't find any info on the web detailing how I can get that Dimensions property back for new uploads.

 

Screenshot: Details Pane for an older (high-res) and a newer (low-res) image with the Dimensions property missing in the newer one.

Info Panel with and without Dimensions.png

I've also unsuccessfully tried:

  • Uploading these images to a standard Document Library as documents. They render in Tiles views with the smaller thumbnail and no Dimensions property.
  • Adding the Picture content type to a standard Document Library and uploading these images as pictures. They render in Tiles views with the smaller thumbnail and no Dimensions property.
  • Flipping the library from Modern back to Classic, which delivers the same square, cropped, and zoomed in classic thumbnail we're used to from SP13 (much worse). Restoring to Modern returned the same mix of low-res (recent uploads) and high-res (pre-migration uploads) thumbnails.

Ideally I need a solution that requires no code (e.g., no PowerShell) so I can offer a sustainable, self-service solution for my users. Anything a Site Collection Administrator can do via the GUI is fine. 

Thanks for any help/ideas you can offer!

4 Replies
Lately I've noticed a change with a lot of images displaying in SPO modern sites. Lots of images get loaded from /api/sp2.1/... etc. loading a thumbnail from the driveitem object just like the graph endpoint supports. I see this also happening in the hero web part for instance or in the news web parts. Also banners on pages loads the same way. At the end of these calls the size of the image gets specified and in some cases I have noticed these are pretty small, resulting in blurry images.

Can you inspect from the browser what the image URL is and check if it is loaded from url through /api/sp2.1 ?

Hi @Robert Schouten - Thank you for your response! 

Inspecting a full-res thumbnail alongside one that's not behaving as expected, I see both coming from the same https://[domain].sharepoint.com/_api/v2.1/drives/ directory.

If you inspect the url, you should see a size parameter. In some circumstances the size is a little bit low, causing blurry pictures.
Thanks again for your help, Robert. I'm inspecting both URLs and I see a size specified in the style of the img tag but the only URL parameter that could be relevant looks the same for both a larger and smaller image (content?prefer=noredirect%2Cclosestavailablesize).

The IMG tags have different sizes specified their style properties, but even there I have no clue how to reconfigure my library to make new uploads the same size as the larger migrated thumbnails (let alone fix this from happening for future uploads).

Full tags below in case it helps with any future suggestions.

SMALL THUMBNAIL: <img alt="" class="image_3cf30bc1 thumbnail_a3c4364b" src="https://[DOMAIN]/_api/v2.1/drives/b!bhKsjW1n4Eu41ey9m4C1FxfyiszxVqpCvWKTgN1hACmqrAFOpRlfR5sbFOObPbHH/items/01UIYPQACBDQRF4UEPVRAI3BASVMFMEINP/thumbnails/0/c176x171/content?prefer=noredirect%2Cclosestavailablesize&amp;cb=%22%7B5E221C41%2D8F50%2D40AC%2D8D84%2D12AB0AC221AF%7D%2C3%22" style="width: 176px; height: 73.48px;">

LARGE THUMBNAIL: <img alt="" class="image_3cf30bc1 thumbnail_a3c4364b" src="https://[DOMAIN]/_api/v2.1/drives/b!bhKsjW1n4Eu41ey9m4C1FxfyiszxVqpCvWKTgN1hACmqrAFOpRlfR5sbFOObPbHH/items/01UIYPQABKP3SSIEFJCJA3M4AZN4KVVIL2/thumbnails/0/c411x171/content?prefer=noredirect%2Cclosestavailablesize&amp;cb=%22%7B24E57E2A%2DA910%2D4112%2DB670%2D196F155AA17A%7D%2C11%22" style="width: 410.4px; height: 171px;">