Package org.eclnt.util.valuemgmt
Class ImageShrinker
java.lang.Object
org.eclnt.util.valuemgmt.ImageShrinker
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
checkIfShrinkingIsSupported
(String extension) static void
static byte[]
shrinkImage
(byte[] bytes, int width, int height, float quality, String format) static byte[]
shrinkImage
(byte[] bytes, int width, int height, String format) static byte[]
sizeImage
(byte[] bytes, int width, int height, float quality, String format, boolean keepRatio, boolean onlyShrkinking)
-
Constructor Details
-
ImageShrinker
public ImageShrinker()
-
-
Method Details
-
checkIfShrinkingIsSupported
-
shrinkImage
public static byte[] shrinkImage(byte[] bytes, int width, int height, String format) throws ImageShrinker.ImageShrinkerException -
shrinkImage
public static byte[] shrinkImage(byte[] bytes, int width, int height, float quality, String format) throws ImageShrinker.ImageShrinkerException -
sizeImage
public static byte[] sizeImage(byte[] bytes, int width, int height, float quality, String format, boolean keepRatio, boolean onlyShrkinking) throws ImageShrinker.ImageShrinkerException -
main
-