Skip to content

Lightweight extension methods for Magick.NET for typincal cropping, scaling and resizing for the web.

License

Notifications You must be signed in to change notification settings

andy-williams/Magick.NET.WebImageExtensions

Repository files navigation

Magick.NET.WebImageExtensions

Lightweight extension methods using Magick.NET for resizing, cropping and scaling images for the web.

This works for both windows and linux.

Example

Input Image

Example input

Code

using(var image = new MagickImage("/path/to/image.jpg"))
{
    image.ScaleAndCrop(new Box(width, height), CropType.Center);
    image.Write("/path/to/output.jpg");
}

Example Output

250 x 250

1000 x 20

5000 x 1200

400 x 1200

1200 x 5000

About

Lightweight extension methods for Magick.NET for typincal cropping, scaling and resizing for the web.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages