Package com.idrsolutions.image.utility
Class SupportedFormats
java.lang.Object
com.idrsolutions.image.utility.SupportedFormats
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.idrsolutions.image.Encoder
getEncoder
(OutputFormat format, EncoderOptions options) static EncoderOptions
getEncoderOptions
(OutputFormat format) static EncoderOptions
getEncoderOptions
(ImageWriteParam param, OutputFormat output) Get the formats encoder options with the compression quality set using ImageWriteParamsstatic OutputFormat
getEnumFromString
(String format) take case insensitive file ending and return the OutputFormat Enum or null if value not foundstatic ImageFormat
getInputEnumFromString
(String format) take case insensitive file ending and return the ImageFormat Enum or null if value not foundstatic String
getInputStringFromEnum
(ImageFormat imageFormat) take ImageFormat and return the String format or an empty sting if not supportedstatic String[][]
List of file formats by file suffix of image formats which can be decodedstatic String[][]
List of file formats by file suffix of image formats which can be encodedstatic String[][]
static boolean
return true if image files ending with this suffix (ie png) can be Decodedstatic boolean
return true if images can be encoded to the format of this suffix (ie png)
-
Method Details
-
getEncoder
public static com.idrsolutions.image.Encoder getEncoder(OutputFormat format, EncoderOptions options) -
getEncoderOptions
-
getSupportedImageEncoders
List of file formats by file suffix of image formats which can be encoded- Returns:
- String[][] with all supported file ending formats (ie
{{"bmp"},{"heic", "heif"}, {"jpeg", "jpg"},{"jpx"},{"png"},{"tif", "tiff"},{"webp"}}
-
getSupportedImageDecoders
List of file formats by file suffix of image formats which can be decoded- Returns:
- String[] with all supported file ending formats (ie
{{"bmp"},{"gif"},{"heic"},{"jpx", "jp2"},{"jpeg", "jpg"},{"png"},{"tif", "tiff"}}
;
-
getSupportedImageMetadatas
-
hasEncoderSupportForImageFormat
return true if images can be encoded to the format of this suffix (ie png)- Parameters:
format
- three letter image prefix- Returns:
- value to show if image can be written by jdeli
-
hasDecoderSupportForImageFormat
return true if image files ending with this suffix (ie png) can be Decoded- Parameters:
format
- three letter image prefix- Returns:
- value to show if image can be read by jdeli
-
getEnumFromString
take case insensitive file ending and return the OutputFormat Enum or null if value not found- Parameters:
format
- three letter image prefix- Returns:
- OutputFormat possible suffices for support image or null
-
getInputEnumFromString
take case insensitive file ending and return the ImageFormat Enum or null if value not found- Parameters:
format
- three letter image prefix- Returns:
- ImageFormat possible suffices for support image or null
-
getInputStringFromEnum
take ImageFormat and return the String format or an empty sting if not supported- Parameters:
imageFormat
- format enum- Returns:
- String format string or empty string if not supported
-
getEncoderOptions
Get the formats encoder options with the compression quality set using ImageWriteParams- Parameters:
param
- ImageWriteParamoutput
- OutputFormat- Returns:
- EncoderOptions
-