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 image
compressionLevel
- is a compression level
IOException
- if any input/output error occurs
Copyright © 1998–2022 iText Group NV. All rights reserved.