Thus far I have tried the following below however this doesn't compress the image into a small enough file size which i require.
Code: Select all
FileInfo info = new FileInfo("c:\\testimage.jpg");
ImageOptimizer optimizer = new ImageOptimizer();
Console.WriteLine("Bytes before: " + info.Length);
optimizer.LosslessCompress("c:\\testimage.jpg");
info.Refresh();
Console.WriteLine("Bytes after: " + info.Length);
As detailed before, my intentions are to achieve compression to around 400-800 KB for each image, which will then allow to complete the next task.