📅  最后修改于: 2023-12-03 14:42:04.751000             🧑  作者: Mango
Imageresizer is an open-source image resizing library for .NET. It allows you to resize, crop, and enhance images with ease.
To use Imageresizer in your .NET project, you can install it via the NuGet package manager:
Install-Package ImageResizer
Once installed, you can use the library in your code like this:
var image = new ImageJob("path/to/image.jpg", "path/to/output.jpg", new Instructions("width=200&height=200&format=jpg"));
image.Build();
This code loads an image from a file, resizes it to 200x200 pixels, converts it to JPEG format, and saves the result to a new file.
The official documentation for Imageresizer is available on the project's website. You can also find support on the GitHub repository.
Imageresizer is licensed under the MIT License. Contributions to the project are welcome, and can be submitted via pull requests on GitHub.