如何在C#中压缩图像(如jpg,png之类的图像)
问题描述:
如何在C#中压缩图像(例如jpg,png之类的图像)
how to images compress in C# (image like jpg,png)
答
^ ]
http://blog.psychocoder.net/2010/06/25/image -compression-asp-net-wc/ [ http://savotdane.blogspot.com/2009/08/how-to-compress-resize-image-in-net-c.html [ ^ ]
http://www.c-sharpcorner.com/uploadfile/rahuldebray /compress-image-to-a-given-size/ [减小图像c#的大小 [
http://geekswithblogs.net/bullpit/archive/2009/04/29/compress-image-files-using-c.aspx[^]
http://blog.psychocoder.net/2010/06/25/image-compression-asp-net-w-c/[^]
http://savotdane.blogspot.com/2009/08/how-to-compress-resize-image-in-net-c.html[^]
http://www.c-sharpcorner.com/uploadfile/rahuldebray/compress-image-to-a-given-size/[^]
reduce size of image c#[^]
JPG和PNG图像已经被压缩,因此除非您准备降低图像质量,否则无法进一步减小文件大小.
Image.Save方法调用GDI +函数 GdipSaveImageToFile [
JPG and PNG images are already compressed, so you can''t reduce file size appreciably further unless you are prepared to lose image quality.
The Image.Save method calls GDI+ function GdipSaveImageToFile [^]with the encoderParams parameter set to null, which equates to 75%. You could use the function directly, supplying a "proper" parameter and change that to get a smaller file size, but the quality will suffer.
只需更改您在默认页面...这可能是权限问题...
Just change the path which you re giveing in the default page...this can be a permission issue...