public class DimensionsExtractor
extends java.lang.Object
| Constructor and Description |
|---|
DimensionsExtractor() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Integer |
getHeightViaBufferedImage(java.io.File imageFile)
Get the height of the image file by loading the file as a buffered image.
|
static java.lang.Integer |
getHeightViaMetadata(com.drew.metadata.Metadata metadata)
Checks the metadata directories in order until the height is found.
|
static java.lang.Integer |
getWidthViaBufferedImage(java.io.File imageFile)
Get the width of the image file by loading the file as a buffered image.
|
static java.lang.Integer |
getWidthViaMetadata(com.drew.metadata.Metadata metadata)
Checks the metadata directories in order until the width is found.
|
public static java.lang.Integer getWidthViaMetadata(com.drew.metadata.Metadata metadata)
public static java.lang.Integer getHeightViaMetadata(com.drew.metadata.Metadata metadata)
public static java.lang.Integer getWidthViaBufferedImage(java.io.File imageFile)
public static java.lang.Integer getHeightViaBufferedImage(java.io.File imageFile)
Copyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.