public abstract class ERImageProcessor extends Object implements IERImageProcessor
| Name | Description |
|---|---|
er.attachment.thumbnail.imageProcessor | er.attachment.thumbnail.imageProcessor |
IERImageProcessor.Quality| Modifier and Type | Field and Description |
|---|---|
static IERImageProcessor |
_imageProcessor |
static Logger |
log |
| Constructor and Description |
|---|
ERImageProcessor() |
| Modifier and Type | Method and Description |
|---|---|
static IERImageProcessor |
imageProcessor()
Returns the best IImageProcesor to use in your environment.
|
void |
thumbnail(int resizeWidth,
int resizeHeight,
File inputFile,
File outputFile)
Provides a shortcut to thumbnailing an image using some default values that produce
decent quality thumbnail outputs.
|
void |
thumbnail(int resizeWidth,
int resizeHeight,
File inputFile,
File outputFile,
ERMimeType outputMimeType)
Provides a shortcut to thumbnailing an image using some default values that produce
decent quality thumbnail outputs.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprocessImagepublic static final Logger log
public static volatile IERImageProcessor _imageProcessor
public static IERImageProcessor imageProcessor()
public void thumbnail(int resizeWidth,
int resizeHeight,
File inputFile,
File outputFile)
throws IOException
thumbnail in interface IERImageProcessorresizeWidth - the maximum resize widthresizeHeight - the maximum resize heightinputFile - the input file to thumbnailoutputFile - the output file to write the thumbnail intoIOException - if the thumbnailing failspublic void thumbnail(int resizeWidth,
int resizeHeight,
File inputFile,
File outputFile,
ERMimeType outputMimeType)
throws IOException
thumbnail in interface IERImageProcessorresizeWidth - the maximum resize widthresizeHeight - the maximum resize heightinputFile - the input file to thumbnailoutputFile - the output file to write the thumbnail intooutputMimeType - the output mime typeIOException - if the thumbnailing failsCopyright © 2002 – 2020 Project Wonder.