Is there a good library to resize an image in .NET with good quality? I'm not pleased with the quality of resized images that GDI+ produces.
It does not matter if the library is free or at a cost.
Resizing an Image can be done in a range of ways. The easiest method is to create a new Bitmap object from the in-memory image. When creating the Bitmap object, you assign the new dimension in the Size parameter. Finally, the resized Bitmap is written to a byte array.
Open the image whose properties you want to change. In the Width and Height boxes in the Properties window, type the dimensions that you want. If you're increasing the size of the image, the Image Editor extends the image to the right, downward, or both, and fills the new region with the current background color.
One of the simplest ways to resize an image in the HTML is using the height and width attributes on the img tag. These values specify the height and width of the image element. The values are set in px i.e. CSS pixels. For example, the original image is 640×960.
I ended up using the imageresizer library by Imazen / Nathanael Jones (website), which works great.
That's pretty odd, GDI+ has nice filters. Be sure to set the Graphics.InterpolationMode property to a high quality setting. LeadTools is one of the leading graphics libraries, ImageMagick if you prefer open source.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With