Project Wonder 5.0

er.attachment.thumbnail
Class ERImageProcessor

java.lang.Object
  extended by 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.imageProcessorer.attachment.thumbnail.imageProcessor
           

Nested Class Summary
 
Nested classes/interfaces inherited from interface er.attachment.thumbnail.IERImageProcessor
IERImageProcessor.Quality
 
Field Summary
static IERImageProcessor _imageProcessor
           
static org.apache.log4j.Logger log
           
 
Constructor Summary
ERImageProcessor()
           
 
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
 
Methods inherited from interface er.attachment.thumbnail.IERImageProcessor
processImage
 

Field Detail

log

public static final org.apache.log4j.Logger log

_imageProcessor

public static volatile IERImageProcessor _imageProcessor
Constructor Detail

ERImageProcessor

public ERImageProcessor()
Method Detail

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 width
resizeHeight - the maximum resize height
inputFile - the input file to thumbnail
outputFile - 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 width
resizeHeight - the maximum resize height
inputFile - the input file to thumbnail
outputFile - the output file to write the thumbnail into
outputMimeType - the output mime type
Throws:
java.io.IOException - if the thumbnailing fails

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.