public final class ImageProcessingUtil extends Object
Modifier and Type | Method and Description |
---|---|
static byte[] |
compressJpeg(byte[] originalJpeg,
double compressionLevel)
Applies JPEG compression to the provided byte array with the provided compression level.
|
public static byte[] compressJpeg(byte[] originalJpeg, double compressionLevel) throws IOException
originalJpeg
- is the array of bytes representing the original JPEG imagecompressionLevel
- is a compression levelIOException
- if any input/output error occursCopyright © 1998–2024 iText Group NV. All rights reserved.