Package net.bluemind.core.utils
Class ImageUtils
java.lang.Object
net.bluemind.core.utils.ImageUtils
- 
Method Summary
Modifier and TypeMethodDescriptionstatic 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 1MBstatic byte[]resize(byte[] image, int width, int height)  
- 
Method Details
- 
checkAndSanitize
public 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- Parameters:
 icon-- Returns:
 - Throws:
 ServerFault
 - 
resize
public static byte[] resize(byte[] image, int width, int height)  
 -