Imaging
Dynamic image processing, resizing and caching
Overview
Processing images
var query = new ProcessImageQuery("~/wwwroot/images/sample.jpg")
{
MaxWidth = 300,
MaxHeight = 200,
Quality = 80,
ScaleMode = "crop"
};
using var result = await _imageProcessor.ProcessImageAsync(query);
await result.Image.SaveAsync("~/wwwroot/output/thumb.jpg");Query tokens
Token
Description
Caching and URLs
Extensibility
Last updated
Was this helpful?