// T3chNicaL.LEad

“If you don’t know where you’re going, you’re unlikely to end up there.” – Forrest Gump

Generate thumbnails automatically in SharePoint December 14, 2008

Filed under: SharePoint — Lawrence Cawood @ 12:34 am
Tags: , ,

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.

 

5 Responses to “Generate thumbnails automatically in SharePoint”

  1. Lawrence,

    Useful tip. Thanks for sharing

    Brian

  2. Mike Says:

    Hey,

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

    Mike

  3. andyburns Says:

    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. [...] And if you look it up on MSDN – it’s undocumented. Googling finds little about it – this was the best I saw. And it is obfuscated – so Reflector doesn’t show what’s going [...]

  5. sayitfast Says:

    Thank you so much!!!!


Leave a Reply