Returns the html code of a custom sized image while maintaining aspect ratio. The resulting image may not be the exact dimensions as requested but no cropping will be applied.
path
(String) The path to an image. Generally
imageObject.thumbnailPath.
key
(String) The key of an image. Generally
imageObject.key.
originalWidth
(Int) The width of the original (hi-res) image.
originalHeight
(Int) The height of the original (hi-res) image.
width
(Int) The desired width of the image.
height
(Int) The desired height of the image.
Returns
(String) An html image tag with a fully qualified url for the image.
Usage
var imageTag = ptg.html.customImageLockTag(image.path, image.key, image.width, image.height, 700, 250);