Resizing an Image without losing any quality [clos

2018-12-31 16:16发布

I need to resize an image, but the image quality cannot be affected by this.

11条回答
旧人旧事旧时光
2楼-- · 2018-12-31 16:53

See if you like the image resizing quality of this open source ASP.NET module. There's a live demo, so you can mess around with it yourself. It yields results that are (to me) impossible to distinguish from Photoshop output. It also has similar file sizes - MS did a good job on their JPEG encoder.

查看更多
旧时光的记忆
3楼-- · 2018-12-31 16:56

You can't resize an image without losing some quality, simply because you are reducing the number of pixels.

Don't reduce the size client side, because browsers don't do a good job of resizing images.

What you can do is programatically change the size before you render it, or as a user uploads it.

Here is an article that explains one way to do this in c#: http://www.codeproject.com/KB/GDI-plus/imageresize.aspx

查看更多
何处买醉
4楼-- · 2018-12-31 17:04

Unless you're doing vector graphics, there's no way to resize an image without potentially losing some image quality.

查看更多
笑指拈花
5楼-- · 2018-12-31 17:10

I believe what you're looking to do is "Resize/Resample" your images. Here is a good site that gives instructions and provides a utility class(That I also happen to use):

http://www.codeproject.com/KB/GDI-plus/imgresizoutperfgdiplus.aspx

查看更多
忆尘夕之涩
6楼-- · 2018-12-31 17:12

Here is a forum thread that provides a C# image resizing code sample. You could use one of the GD library binders to do resampling in C#.

查看更多
登录 后发表回答