ImageUtils — Aspose.Slides FOSS Java API Reference
ImageUtils — Image utility functions for parsing image headers and detecting content types.
Package: org.aspose.slides.foss.internal.pptx
Note: This is an internal implementation class. Do not import or use it directly — the package
org.aspose.slides.foss.internal.pptxis not part of the public API and may change without notice. This page is provided for reference only.
Methods
| Method | Returns | Description |
|---|---|---|
guessContentType(byte[] data) | String | Detects the MIME content type of an image from its binary data. |
guessExtension(byte[] data) | String | Guesses the file extension for image data based on its content. |
getImageDimensions(byte[] data) | int[] | Parses image dimensions from binary header data. |
getPngDimensions(byte[] data) | int[] | Parses PNG IHDR chunk for width and height. |
getJpegDimensions(byte[] data) | int[] | Parses JPEG SOF marker for width and height. |
getGifDimensions(byte[] data) | int[] | Parses GIF logical screen descriptor for width and height. |
getBmpDimensions(byte[] data) | int[] | Parses BMP info header for width and height. |
getTiffDimensions(byte[] data) | int[] | Parses TIFF IFD for ImageWidth and ImageLength tags. |