Class WebpImageTransformation

  • All Implemented Interfaces:
    ITransformation

    public class WebpImageTransformation
    extends java.lang.Object
    implements ITransformation
    Transformation to scale and convert an image to webp.
    Since:
    16.0.0
    Version:
    $Revision: 25808 $ $Date: 2023-07-04 15:20:55 -0300 (Tue, 04 Jul 2023) $
    • Constructor Summary

      Constructors 
      Constructor Description
      WebpImageTransformation​(java.io.InputStream content, java.lang.Integer width, java.lang.Integer height)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void transform​(java.io.OutputStream outputStream)
      Performs the file transformation using the outputStream parameter as target of the file transformations.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WebpImageTransformation

        public WebpImageTransformation​(java.io.InputStream content,
                                       java.lang.Integer width,
                                       java.lang.Integer height)
    • Method Detail

      • transform

        public void transform​(java.io.OutputStream outputStream)
                       throws PortalException
        Description copied from interface: ITransformation
        Performs the file transformation using the outputStream parameter as target of the file transformations.
        Specified by:
        transform in interface ITransformation
        Parameters:
        outputStream - the writer to be transformed.
        Throws:
        PortalException