Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Library to resize image in .net

Tags:

.net

image

resize

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.

like image 711
Andreas Avatar asked Jun 01 '10 11:06

Andreas


People also ask

How do I resize an image in .NET core?

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.

How do I resize an image in Visual Studio?

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.

How do I resize an image in html5?

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.


2 Answers

I ended up using the imageresizer library by Imazen / Nathanael Jones (website), which works great.

like image 82
Andreas Avatar answered Sep 21 '22 04:09

Andreas


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.

like image 26
Hans Passant Avatar answered Sep 24 '22 04:09

Hans Passant