public class ImageUtils
extends java.lang.Object
| Modifier and Type | Method and Description | 
|---|---|
static byte[] | 
checkAndSanitize(byte[] icon)
Checks the byte array is in a supported image format and returns a PNG
 version
 
 Also rejects the image if the resulting PNG would be bigger than 1MB 
 | 
static byte[] | 
resize(byte[] image,
      int width,
      int height)  | 
public static byte[] checkAndSanitize(byte[] icon)
icon - ServerFaultpublic static byte[] resize(byte[] image,
                            int width,
                            int height)
Copyright © 2023. All Rights Reserved.