Interface ImageTransformer


  • @ConsumerType
    public interface ImageTransformer
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String PROP_TYPE
      OSGi Property used to identify the ImageTransformer.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      com.day.image.Layer transform​(com.day.image.Layer layer, org.apache.sling.api.resource.ValueMap properties)
      Transform the provided layer using the transformation parameters provided in properties.
    • Method Detail

      • transform

        com.day.image.Layer transform​(com.day.image.Layer layer,
                                      org.apache.sling.api.resource.ValueMap properties)
        Transform the provided layer using the transformation parameters provided in properties.
        Parameters:
        layer - the image layer to transform
        properties - transformation parameters
        Returns:
        the transformed layer; or if layer could not be transformed (invalid properties) the layer unmodified