Skip to content

Generate thumbnails automatically in SharePoint

by on December 14, 2008

If you need to insert a thumbnail into your content, use the following url as the image source:

http://servername/_layouts/AssetUploader.aspx?Size=Medium&ImageUrl=/TestSite/Pictures/TechnicalLead.jpg

The ‘Size’ parameter can be set to Small or Medium, and the ‘ImageUrl’ parameter is the location of the image that you wish to generate the thumbnail from. This image must be located within the site collection. If the url to your full size image was http://servername/sitename/listname/filename.jpg, the value to pass here would be /sitename/listname/filename.jpg.

I’ve found this comes in handy when creating announcements with links to screenshots or photos, where you require an image to be dynamically resized to a thumbnail.

From → SharePoint

6 Comments
  1. Lawrence,

    Useful tip. Thanks for sharing

    Brian

  2. Mike permalink

    Hey,

    You sure thats not something someone custom dev’d? I don’t see it in my layouts directory :(

    Mike

  3. andyburns permalink

    Are the thumbnails cached somewhere? In Picture Libraries thumbnails get put in the _t and _w folders – but I’m not sure about AssetUploader generated ones.

  4. sayitfast permalink

    Thank you so much!!!!

  5. Nagen permalink

    It was a great post and thanks for the information. In my case, the Image URL is going to be from Web. I mean, it will be something like (for example) http://timesofindia.indiatimes.com/thumb.cms?msid=5628302&width=300&resizemode=4. In this case, how should I specify the ImageUrl.

Trackbacks & Pingbacks

  1. Automatic Thumbnail generation in SharePoint » novolocus.com

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 72 other followers