In CS 2.1 and 2007 I made heavy use of the ability to specify an image size in the URL. I don't have one in front of me, but the basic concept was something like this:
http://yourdomainhere.com/gallery/picture1234/800x600.aspx - would give you an 800 x 600 version of picture 1234.
Then suppose in a blog post I wanted to show a 400 x 300 version of that same picture, all I'd have to do is update the URL like this:
http://yourdomainhere.com/gallery/picture1234/400x300.aspx
Community Server would resize the image server side on the fly (and then cache it I think for the next time) and produce a 400 x 300 version for my blog post.
Now that under CS 2008 we've moved to the "Media" application, I don't see that convention being used in the URL's. But I get the sense that the functionality is still going on behind the scenes. Does anyone know how to do what I described above in CS 2008?
By the way, you may be thinking why not just set the height and width attributes in the Insert Image dialog in the blog editor (set the height and width properties in the IMG tag). I don't like this because the full-size image is still downloaded to the browser, then resized (badly) by the browser.
Thanks!
Using the "Insert Media" option and clicking "Browse" to select an existing image from the photo gallery or "My Files" allows you to specify a width/height -- this specification is used to perform a server-side, cached, high-quality resizing of the image.
Outstanding, thanks Ben, it works great! Also for those who may need it for other applications, I noticed upon right-clicking an image in the gallery preview window, viewing Properties, Address I got something like this:
http://yourdomainhere.com/resized-image.ashx/__size/500x400/__key/CommunityServer.Components.PostAttachments/00.00.00.42.27/someimage.jpg
And sure enough, changing the 500x400 portion of that URL had the desired effect.
Thanks again!
Copyright© 2008 Telligent Systems Inc. All rights reserved CommunityServer.com • Telligent.com