ImgMetadataRemover/ImageCore/LosslessCompressor.cs

20 lines
No EOL
488 B
C#

using ImageMagick;
namespace Image
{
public class LosslessCompressor : ICompressor
{
public static readonly LosslessCompressor Instance = new LosslessCompressor();
private readonly ImageOptimizer _imageOptimizer;
public LosslessCompressor()
{
_imageOptimizer = new ImageOptimizer();
}
public void Compress(string fileName)
{
_imageOptimizer.LosslessCompress(fileName);
}
}
}