This project has moved and is read-only. For the latest updates, please go here.

Lossless compress JPEG logo

C#
FileInfo snakewareLogo = new FileInfo("Snakeware.jpg");

Console.WriteLine("Bytes before: " + snakewareLogo.Length);

ImageOptimizer optimizer = new ImageOptimizer();
optimizer.LosslessCompress(snakewareLogo);

snakewareLogo.Refresh();
Console.WriteLine("Bytes after:  " + snakewareLogo.Length);
VB.NET
Dim snakewareLogo As New FileInfo("Snakeware.jpg")

Console.WriteLine("Bytes before: " + snakewareLogo.Length)

Dim optimizer As New ImageOptimizer()
optimizer.LosslessCompress(snakewareLogo)

snakewareLogo.Refresh()
Console.WriteLine("Bytes after:  " + snakewareLogo.Length)

Last edited Jul 5, 2015 at 10:11 AM by dlemstra, version 1