public final class ImageService extends Object
Modifier and Type | Method and Description |
---|---|
static byte[] |
resizeImage(byte[] byteArray,
int width)
Resize an image with the default quality
|
static byte[] |
resizeImage(byte[] byteArray,
int width,
float quality)
Resize an image
|
public static byte[] resizeImage(byte[] byteArray, int width)
byteArray
- the original byte arraywidth
- the new widthpublic static byte[] resizeImage(byte[] byteArray, int width, float quality)
byteArray
- the original byte arraywidth
- the new widthquality
- the quality between 0.0 and 1.0Copyright © 2019 City of Paris. All rights reserved.