Package org.silverpeas.core.util
Class ImageUtil
- java.lang.Object
-
- org.silverpeas.core.util.ImageUtil
-
public class ImageUtil extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
BMP_IMAGE_EXTENSION
static String
GIF_IMAGE_EXTENSION
static String[]
IMAGE_EXTENTIONS
static String
JPEG_IMAGE_EXTENSION
static String
JPG_IMAGE_EXTENSION
static String
PCD_IMAGE_EXTENSION
static String
PNG_IMAGE_EXTENSION
static String
PSD_IMAGE_EXTENSION
static String
TGA_IMAGE_EXTENSION
static String
TIF_IMAGE_EXTENSION
static String
WEBP_IMAGE_EXTENSION
-
Constructor Summary
Constructors Constructor Description ImageUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String[]
getWidthAndHeight(File image)
static String[]
getWidthAndHeight(InputStream image)
static String[]
getWidthAndHeightByHeight(File image, int heightParam)
static String[]
getWidthAndHeightByHeight(InputStream image, int heightParam)
static String[]
getWidthAndHeightByWidth(File image, int widthParam)
static String[]
getWidthAndHeightByWidth(InputStream image, int widthParam)
-
-
-
Field Detail
-
BMP_IMAGE_EXTENSION
public static final String BMP_IMAGE_EXTENSION
- See Also:
- Constant Field Values
-
GIF_IMAGE_EXTENSION
public static final String GIF_IMAGE_EXTENSION
- See Also:
- Constant Field Values
-
JPG_IMAGE_EXTENSION
public static final String JPG_IMAGE_EXTENSION
- See Also:
- Constant Field Values
-
JPEG_IMAGE_EXTENSION
public static final String JPEG_IMAGE_EXTENSION
- See Also:
- Constant Field Values
-
PCD_IMAGE_EXTENSION
public static final String PCD_IMAGE_EXTENSION
- See Also:
- Constant Field Values
-
PNG_IMAGE_EXTENSION
public static final String PNG_IMAGE_EXTENSION
- See Also:
- Constant Field Values
-
PSD_IMAGE_EXTENSION
public static final String PSD_IMAGE_EXTENSION
- See Also:
- Constant Field Values
-
TGA_IMAGE_EXTENSION
public static final String TGA_IMAGE_EXTENSION
- See Also:
- Constant Field Values
-
TIF_IMAGE_EXTENSION
public static final String TIF_IMAGE_EXTENSION
- See Also:
- Constant Field Values
-
WEBP_IMAGE_EXTENSION
public static final String WEBP_IMAGE_EXTENSION
- See Also:
- Constant Field Values
-
IMAGE_EXTENTIONS
public static final String[] IMAGE_EXTENTIONS
-
-
Method Detail
-
getWidthAndHeightByWidth
public static String[] getWidthAndHeightByWidth(File image, int widthParam)
-
getWidthAndHeightByWidth
public static String[] getWidthAndHeightByWidth(InputStream image, int widthParam)
-
getWidthAndHeightByHeight
public static String[] getWidthAndHeightByHeight(File image, int heightParam)
-
getWidthAndHeightByHeight
public static String[] getWidthAndHeightByHeight(InputStream image, int heightParam)
-
getWidthAndHeight
public static String[] getWidthAndHeight(InputStream image)
-
-