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();
optimizer.LosslessCompress(imageMod);
Or...
optimizer.Compress(imageMod);
Best Way To Compress .PNG Image File?
Re: Best Way To Compress .PNG Image File?
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.