ImgMetadataRemover/Image/LosslessCompressor.cs
2022-01-22 19:06:10 +02:00

19 lines
No EOL
393 B
C#

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