Fork me on GitHub

Image Layers accept input from a variety of sources, and it is also straightforward to write your own ImageSource. The image sources included with DynamicImage let you load images from:

Raw bytes BytesImageSource
Binary database field SqlDatabaseImageSource
File FileImageSource
Bitmap ImageImageSource
Remote URL RemoteImageSource
@Html.DynamicImageTag(b => b.WithLayer(
	LayerBuilder.Image.SourceFile("~/Assets/Images/Tulips.jpg")
		.WithFilter(FilterBuilder.Resize.ToWidth(500))))

@Html.DynamicImageTag(b => b.WithLayer(
	LayerBuilder.Image.SourceUrl("http://www.google.com/images/srpr/logo4w.png")
		.WithFilter(FilterBuilder.Resize.ToWidth(500))))