er.attachment.thumbnail
Class ERImageProcessor
java.lang.Object
er.attachment.thumbnail.ERImageProcessor
- All Implemented Interfaces:
- IERImageProcessor
- Direct Known Subclasses:
- ImageIOImageProcessor, ImageMagickImageProcessor, Java2DImageProcessor, SipsImageProcessor
public abstract class ERImageProcessor
- extends java.lang.Object
- implements IERImageProcessor
ImageProcessor is a common superclass of all IImageProcessor
implementations.
- Author:
- mschrag
Properties |
er.attachment.thumbnail.imageProcessor | er.attachment.thumbnail.imageProcessor |
Method Summary |
static IERImageProcessor |
imageProcessor()
Returns the best IImageProcesor to use in your environment. |
void |
thumbnail(int resizeWidth,
int resizeHeight,
java.io.File inputFile,
java.io.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,
java.io.File inputFile,
java.io.File outputFile,
ERMimeType outputMimeType)
Provides a shortcut to thumbnailing an image using some default values that produce
decent quality thumbnail outputs. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
public static final org.apache.log4j.Logger log
_imageProcessor
public static volatile IERImageProcessor _imageProcessor
ERImageProcessor
public ERImageProcessor()
imageProcessor
public static IERImageProcessor imageProcessor()
- Returns the best IImageProcesor to use in your environment.
- Returns:
- the best IImageProcesor to use in your environment
thumbnail
public void thumbnail(int resizeWidth,
int resizeHeight,
java.io.File inputFile,
java.io.File outputFile)
throws java.io.IOException
- Provides a shortcut to thumbnailing an image using some default values that produce
decent quality thumbnail outputs.
- Specified by:
thumbnail
in interface IERImageProcessor
- Parameters:
resizeWidth
- the maximum resize widthresizeHeight
- the maximum resize heightinputFile
- the input file to thumbnailoutputFile
- the output file to write the thumbnail into
- Throws:
java.io.IOException
- if the thumbnailing fails
thumbnail
public void thumbnail(int resizeWidth,
int resizeHeight,
java.io.File inputFile,
java.io.File outputFile,
ERMimeType outputMimeType)
throws java.io.IOException
- Provides a shortcut to thumbnailing an image using some default values that produce
decent quality thumbnail outputs.
- Specified by:
thumbnail
in interface IERImageProcessor
- Parameters:
resizeWidth
- the maximum resize widthresizeHeight
- the maximum resize heightinputFile
- the input file to thumbnailoutputFile
- the output file to write the thumbnail intooutputMimeType
- the output mime type
- Throws:
java.io.IOException
- if the thumbnailing fails
Copyright © 2002 – 2007 Project Wonder.