Glassmapper RenderImage parameters
Here is a cheat sheet for the parameters you can pass into the RenderImage() function of Glassmapper.
“outputMethod” = html or xhtml
“alt” = alt text for image
“border” = border around image
“hspace” = horizontal space
“vspace” = vertical space
“@class” = css class to apply
“@as“ = allow stretch; will stretch the image to the dimensions specified
“iar” = ignore aspect ratio; ignore the aspect ratio when stretching image
“w” or “width” = image width
“h” or “height” = image height
“sc” = scaling to apply
“mw” = max image width
“mh” = max image height
“thn” = thumbnail
“bc” = background color; useful for when letterboxes are added to images with the wrong aspect ratio.
“db” = Sitecore item database
“la” = Sitecore item language
“vs” = Sitecore item version
“disableMediaCache” = disable the Sitecore items Media Cache
Reference:
https://github.com/mikeedwards83/Glass.Mapper/blob/master/Source/Glass.Mapper.Sc/RenderField/ImageParameterKeys.cs










