public final class ImageTypeDetector extends Object
| Modifier and Type | Method and Description |
|---|---|
static ImageType |
detectImageType(byte[] source)
Detect image type by magic bytes given the byte array source
|
static ImageType |
detectImageType(URL source)
Detect image type by magic bytes given the source URL
|
public static ImageType detectImageType(byte[] source)
source - image bytesImageType. Returns ImageType.NONE if image type is unknownpublic static ImageType detectImageType(URL source)
source - image URLImageType. Returns ImageType.NONE if image type is unknownCopyright © 1998–2021 iText Group NV. All rights reserved.