Best Way To Compress .PNG Image File?

Magick.NET is an object-oriented C# interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick.NET
Post Reply
Posts: 13
Joined: 2018-07-22T22:22:12-07:00
Authentication code: 1152

Best Way To Compress .PNG Image File?

Post by GlennIM » 2018-09-01T22:44:59-07:00

What is the best way to compress a .PNG format file that ImageMagicK creates to make the image file smaller in size?

ImageOptimizer optimizer = new ImageOptimizer();




User avatar
Posts: 1513
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789

Re: Best Way To Compress .PNG Image File?

Post by dlemstra » 2018-09-02T04:39:09-07:00

Compress will give you a better result but you might loose information from the file. If you only use the images in a website you should probably use the Compress method. But if you want to preserve the information from the original image you should use LosslessCompress instead. And make sure you also set the `OptimalCompression` property to true.
.NET + ImageMagick = Magick.NET, @MagickNET, Donate

Post Reply