EncodeJpeg.Options

public static class EncodeJpeg.Options

Optional attributes for EncodeJpeg

Public Methods

EncodeJpeg.Options
chromaDownsampling(Boolean chromaDownsampling)
EncodeJpeg.Options
densityUnit(String densityUnit)
EncodeJpeg.Options
format(String format)
EncodeJpeg.Options
optimizeSize(Boolean optimizeSize)
EncodeJpeg.Options
progressive(Boolean progressive)
EncodeJpeg.Options
quality(Long quality)
EncodeJpeg.Options
xDensity(Long xDensity)
EncodeJpeg.Options
xmpMetadata(String xmpMetadata)
EncodeJpeg.Options
yDensity(Long yDensity)

Inherited Methods

Public Methods

public EncodeJpeg.Options chromaDownsampling (Boolean chromaDownsampling)

Parameters
chromaDownsampling See http://en.wikipedia.org/wiki/Chroma_subsampling.

public EncodeJpeg.Options densityUnit (String densityUnit)

Parameters
densityUnit Unit used to specify `x_density` and `y_density`: pixels per inch (`'in'`) or centimeter (`'cm'`).

public EncodeJpeg.Options format (String format)

Parameters
format Per pixel image format.

public EncodeJpeg.Options optimizeSize (Boolean optimizeSize)

Parameters
optimizeSize If True, spend CPU/RAM to reduce size with no quality change.

public EncodeJpeg.Options progressive (Boolean progressive)

Parameters
progressive If True, create a JPEG that loads progressively (coarse to fine).

public EncodeJpeg.Options quality (Long quality)

Parameters
quality Quality of the compression from 0 to 100 (higher is better and slower).

public EncodeJpeg.Options xDensity (Long xDensity)

Parameters
xDensity Horizontal pixels per density unit.

public EncodeJpeg.Options xmpMetadata (String xmpMetadata)

Parameters
xmpMetadata If not empty, embed this XMP metadata in the image header.

public EncodeJpeg.Options yDensity (Long yDensity)

Parameters
yDensity Vertical pixels per density unit.