gjshah7254
5/9/2014 - 4:59 AM

Image Links

Image Links

---Third Party Image Resizer---
<%# CustomCode.ImageResizer("ImageFieldName") %>?width=150
<%# CustomCode.ImageResizer(Eval("ImageFieldName")) %>?width=150&height=200
<%# CustomCode.ImageResizer(Eval("ImageFieldName")) %>?width=150&height=200&mode=crop
<%# CustomCode.ImageResizer(Eval("ImageFieldName")) %>?width=150&height=200&quality=10
<%# CustomCode.ImageResizer(Eval("ImageFieldName")) %>?width=150&height=200&bgcolor=000000

More example of the third party plugin:
http://imageresizing.net/docs/basics

---Built in Kentico Image Resizer---
//Code for Image field  - DataType - Media Selection
<%# CustomCode.ImageFunction(Eval("ImageFieldName")) %>&amp;width=150
<%# CustomCode.ImageFunction(Eval("ImageFieldName ")) %>&amp;height=150
<%# CustomCode.ImageFunction(Eval("ImageFieldName ")) %>&amp;maxsidesize=150


//Code for Image field  - DataType - File
<img src="~/getattachment/<%# Eval("Image") %>/<%# Eval("NodeAlias") %>?width=240"  />