Class CropHandler

    • Constructor Detail

      • CropHandler

        public CropHandler()
    • Method Detail

      • handle

        public void handle​(net.coobird.thumbnailator.Thumbnails.Builder<? extends InputStream> builder,
                           org.apache.sling.api.resource.Resource config)
                    throws IOException
        Description copied from interface: TransformationHandler
        Handles the transformation of the file using the command values from the suffix segment.
        Specified by:
        handle in interface TransformationHandler
        Parameters:
        builder - the Thumbnails builder to use / update
        config - the configuration values for the transformation
        Throws:
        IOException - an exception occurs transforming the file