Image resizing for dotnet core mvc projects using ImageMagick and Azure storage.
Include this package in any dot net core mvc file and /image/{imageId}?width=200&height=300&cover=true will handle imageresizing.
services.Configure<ImageResizerSettings>(Configuration.GetSection("ImageResizerSettings"));"ImageResizerSettings": {
"AzureConnectionString": "DefaultEndpointsProtocol=https;AccountName=<yourname>;AccountKey=<yourkey>",
"AssetContainerName": "<yourname>",
"ImageCdn": "<http://optional:url>",
"CompressionQuality": "<1-100>"
}By default, all images that are created and stored in imagecache/{id}-{width}-{height}. There is no mechanism for clearing these.
To use the UrlHelper shorthands
<img src="@ImageResizer.GetBaseUrlForImage(item.Image)" />add this line to _ViewImports.csthml
@inject Q42.ImageResizer.ImageResizer ImageResizer