Class ImageTransformerConfig

All Implemented Interfaces:
Labelable

public class ImageTransformerConfig extends BaseDocHandlerConfig

Transforms an image using common image operations.

This class should only be used as a pre-parsing handler, on image files. It may also be appropriate to disable parsing of those images if you want to keep the transformed version intact. This can be done by configuring DefaultParser as a handler in the ImporterConfig.

Content-types

By default, this filter is restricted to (applies only to) documents matching the restrictions returned by CommonRestrictions.imageIOStandardContentTypes(String). You can specify your own content types if you know they represent a supported image.

Image dimension format

For a list of supported image dimension formats, refer to DimensionConverter.

Usage example:

The above example converts images to PNG while scaling it to a maximum dimension of 400 pixels wide and 250 pixel high.

See Also: