Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: JPEG Progressive Format Option

$
0
0
I don't think you can get the difference between Baseline (Standard)" and "Baseline Optimized" with Magick.NET. Maybe it does lossless compression? You can do that with Magick.NET with the following code:
var optimizer = new ImageMagick.ImageOptimizers.JpegOptimizer();
optimizer.Progressive = false;
/*
  If you set this to false only 'optimizer.Progressive' will be
  checked and the inverse won't be done
*/
optimizer.OptimalCompression = false;
optimizer.LosslessCompress(@"c:\yourfile.jpg");
The downside of this is that it will only work if it produces a smaller file. Maybe I should add an extra method to the optimizer that will 'optimize' the file even if the result is larger. Not sure what I should call that method though.

Viewing all articles
Browse latest Browse all 3693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>