Monday, June 16, 2008

How to get a thumbnail view of an Image?

Hi All,

In MOSS we have picture library where we can upload images. But there is no way where you can display thumbnail view of an image.

All you have to do is just append “_t” to directory and convert period in filename with underscore character and append images extension.

Here are the samples:

If the Image URL is:

"http://server/site/mysite/PictureLibrary/testPic.gif"

Change it to

"http://server/site/mysite/PictureLibrary/_t/testPic_gif.gif"

You can also use _w instead of _t. This will give you larger image.

This idea is given by Robert Bogue (MVP)

12 comments:

Anonymous said...

Many thanks. I spent hours trying to get a datasheet view working with picture libraries. But your tip allows me to use a document library instead, and have an URL to a picture library, and properly display the thumbnail in the list view.

Anonymous said...

Many thanks. Saved me hours of work.

Anonymous said...

Many thanks. Saved me hours of work on lame workarounds.

Sendilkumar said...

Is is possible to get thumbnail view of video upload as attachement?

Anonymous said...

I am trying to display the thumbnail on a public website, however it is not accessible to anonymous users (the full size image is). Any idea how to allow anonymous users access to the thumbnail?

SharePoint Kings said...

@Easwar not tried it so no idea about it.

@Anonymous: if site not accessible to anonymous then no content from site can be available to anonymous directly not even Image.

Jon Badgett said...

Small correction. The thumbnail will always be a jpeg, so if you have say test.gif - the new filename will be /_t/test_gif.jpg

Anonymous said...

Rename the file test_jpg and then add .jpg that does the trick. Thanks Jon!

Bharat Sachdeva said...

Many Thanks, Jon Badgett

It really saved my work.

Bharat Sachdeva said...

Thanks, Jon Badgett

It really saved my hours.

SharePoint Kings said...

@Jon Badgett,

thanks for our side as well for correction.

Anonymous said...

This's very simple, but it's help me very much! Thanks:)




Share your SharePoint Experiences with us...
As good as the SharePointKings is, we want to make it even better. One of our most valuable sources of input for our Blog Posts comes from ever enthusiastic Visitors/Readers. We welcome every Visitor/Reader to contribute their experiences with SharePoint. It may be in the form of a code stub, snippet, any tips and trick or any crazy thing you have tried with SharePoint.
Send your Articles to sharepointkings@gmail.com with your Profile Summary. We will Post them. The idea is to act as a bridge between you Readers!!!

If anyone would like to have their advertisement posted on this blog, please send us the requirement details to sharepointkings@gmail.com