Successfully added
Resize Images in C#
by Matteo
ImageSharp from Six Labors
ImageSharp - A cross-platform library for the processing of image files; written in C#
Compared to System.Drawing
ImageSharp has been able to develop something much more flexible, easier to code against, and much, much less prone to memory leaks. Gone are system-wide process-locks; ImageSharp images are thread-safe and fully supported in web environments.
using (Image<Rgba32> image = Image.Load("foo.jpg"))
{
image.Mutate(x => x
.Resize(image.Width / 2, image.Height / 2)
.Grayscale());
image.Save("bar.jpg"); // Automatic encoder selected based on extension.
}
ImageSharp Documentation
- Getting Started (sixlabors.com)
- Resizing Images (sixlabors.com)
- Class ResizeExtensions (sixlabors.com)
Some Discussions
Referenced in:
Leave a Comment
All fields are required. Your email address will not be published.
Comments