High quality JPEG compression with c#

后端 未结 6 2010
谎友^
谎友^ 2020-11-27 05:32

I am using C# and want to save images using JPEG format. However .NET reduces quality of the images and saves them with compression that is not enough.

I want to sav

6条回答
  •  清酒与你
    2020-11-27 06:14

    It must save the file like its orjinal quality and size

    That doesn't make a lot of sense. When you are using lossy compression you are going to lose some information by definition. The point of compressing an image is to reduce the file size. If you need high quality and jpeg isn't doing it for you you may have to go with some type of lossless compression, but your file sizes will not be reduced by much. You could always try using the 'standard' library for compressing to jpeg (libjpeg) and see if that gives you any different results (I doubt it, but I don't know what .NET is using under the hood.)

提交回复
热议问题