Skip to content

Instantly share code, notes, and snippets.

@mrcave
Created May 4, 2011 03:32
Show Gist options
  • Save mrcave/954715 to your computer and use it in GitHub Desktop.
Save mrcave/954715 to your computer and use it in GitHub Desktop.
ResizeImage.aspx Paramaters
<img src="/ResizeImage.aspx?img=/Websites/siteslug/Images/image.jpg&w=128" />
<img src="/Websites/lightignite/Images/blog/fence.jpg" />
img - The full local path to the image i.e. /Websites/siteslug/Images/image.jpg
h - Set the height of the resized image
w - Set the width of the resized image
m - Set the max width or height of the resized image. This will cause an image to be further scaled down if either the width or height exceed the max value after the image has been resized according to the other paramaters
s - Set this to 'true' to generate a square thumbnail. A 'm' max width/height must also be specified.
t - Supposedly this will only cause the image to be resized only if the source image is larger than the specified 'h', 'w', or 'm', however I could not verify this functionality because even without 't' defined I was unable to get an image to scale up any larger than it started.
<img src="/ResizeImage.aspx?img=/Websites/lightignite/Images/blog/fence.jpg&w=128" />
<img src="/ResizeImage.aspx?img=/Websites/lightignite/Images/blog/fence.jpg&m=64&s=true" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment