Package lumis.util.image.webp
Class WebpUtil
- java.lang.Object
-
- lumis.util.image.webp.WebpUtil
-
public class WebpUtil extends java.lang.Object
Webp image utilities.- Since:
- 16.0.0
- Version:
- $Revision$ $Date$
-
-
Constructor Summary
Constructors Constructor Description WebpUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
transformImage(java.io.InputStream srcImg, java.io.OutputStream trgImg, java.lang.Integer width, java.lang.Integer height)
Converts the source image stream into the given output stream (converting it to webp) and scales the image based on the given width or height (only one of them is expected to be non-null).
-
-
-
Method Detail
-
transformImage
public static void transformImage(java.io.InputStream srcImg, java.io.OutputStream trgImg, java.lang.Integer width, java.lang.Integer height)
Converts the source image stream into the given output stream (converting it to webp) and scales the image based on the given width or height (only one of them is expected to be non-null).- Parameters:
srcImg
- the source image streamtrgImg
- the target image streamwidth
- the widthheight
- the height- Since:
- 16.0.0
-
-