Click or drag to resize

ASP.NET MVC Samples

<!-- Chaining commands -->
@this.ImageTag("Image2.png", task => task.ResizeHeight(300).Rotate(45))
<!-- Adding html attributes to generated <img> tag -->
@this.ImageTag("Image3.jpg", task => task.FlipVertical(), new { alt = "description" })
<!-- Changing image file name in generated url for seo purposes -->
@this.ImageTag("Image4.jpg", task => task.Brightness(50).FileName("seo-name"))
<!-- Using ImageUrl and also changing format of the resulting image -->
Image url: @this.ImageUrl("Image5.jpg", task => task.Crop(0, 0, 100, 100).Format(ImageWebSafeFormat.Png))