In most cases, it’s not programmatically possible to alter content on a LightCMS site. That’s not to say that the CMS lacks flexibility, just that some advanced scenarios require careful planning to implement in a way that’s both elegant and functional.
That said, we recently discovered a little gem hiding away on every LightCMS site that helps us remain more agile in our development. It’s a script called ‘ResizeImage.aspx’ and it makes it a snap to reuse a single image across your site in a variety of sizes and formats.
The script is available at http://yoursite.com/ResizeImage.aspx. It has several paramaters:
Examples
The easiest way to learn how to use this trick is to see it in action, so here are a few examples to get you started.
Original image:

Resized to max width of 128px:

Squared off at max width/height of 64px:

Limitations
- The image has to be locally hosted. Remotely linked images will not work.
- Height and/or width must be specified
More info
There’s a post about this on the LightCMS support forums in case you want to ask any more questions about this functionality.
Note: This is not an officially supported feature of LightCMS. As stated in the forum, this functionality could change or be removed at any time. Use at your own risk.
Posted on
May 9, 2011
by Denny Cave
filed under