C# Class ImageMagick.ImageOptimizers.JpegOptimizer

Class that can be used to optimize jpeg files.
Inheritance: IImageOptimizer, ILosslessImageOptimizer
Show file Open project: dlemstra/Magick.NET

Public Methods

Method Description
JpegOptimizer ( ) : System.IO

Initializes a new instance of the JpegOptimizer class.

LosslessCompress ( FileInfo file ) : void

Performs lossless compression on speified the file. If the new file size is not smaller the file won't be overwritten.

LosslessCompress ( string fileName ) : void

Performs lossless compression on speified the file. If the new file size is not smaller the file won't be overwritten.

Private Methods

Method Description
LosslessCompress ( FileInfo file, bool progressive ) : void

Method Details

JpegOptimizer() public method

Initializes a new instance of the JpegOptimizer class.
public JpegOptimizer ( ) : System.IO
return System.IO

LosslessCompress() public method

Performs lossless compression on speified the file. If the new file size is not smaller the file won't be overwritten.
public LosslessCompress ( FileInfo file ) : void
file System.IO.FileInfo The png file to optimize
return void

LosslessCompress() public method

Performs lossless compression on speified the file. If the new file size is not smaller the file won't be overwritten.
public LosslessCompress ( string fileName ) : void
fileName string The png file to optimize
return void