Class JaiImageProcessor
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.imageprocessor.imageio.IIOImageProcessor
-
- edu.cornell.mannlib.vitro.webapp.imageprocessor.jai.JaiImageProcessor
-
- All Implemented Interfaces:
Application.Component,Application.Module,ImageProcessor
@Deprecated public class JaiImageProcessor extends IIOImageProcessor
Deprecated.Re-implemented as ImageIO / TwelveMonkeys plugin for better OpenJDK compatibility and to remove JAI codec dependencies that are not distributed via Maven This transitional stub extends the new class, and logs warnings for people to update their config
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface edu.cornell.mannlib.vitro.webapp.modules.Application.Component
Application.Component.LifecycleState
-
Nested classes/interfaces inherited from interface edu.cornell.mannlib.vitro.webapp.modules.imageProcessor.ImageProcessor
ImageProcessor.CropRectangle, ImageProcessor.Dimensions, ImageProcessor.ImageProcessorException
-
-
Field Summary
-
Fields inherited from interface edu.cornell.mannlib.vitro.webapp.modules.imageProcessor.ImageProcessor
MINIMUM_CROP_SIZE
-
-
Constructor Summary
Constructors Constructor Description JaiImageProcessor()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description InputStreamcropAndScale(InputStream mainImageStream, ImageProcessor.CropRectangle crop, ImageProcessor.Dimensions limits)Deprecated.ImageProcessor.DimensionsgetDimensions(InputStream imageStream)Deprecated.voidstartup(Application application, ComponentStartupStatus ss)Deprecated.-
Methods inherited from class edu.cornell.mannlib.vitro.webapp.imageprocessor.imageio.IIOImageProcessor
shutdown
-
-
-
-
Method Detail
-
startup
@Deprecated public void startup(Application application, ComponentStartupStatus ss)
Deprecated.Description copied from class:IIOImageProcessorPrevent Java Advanced Imaging from complaining about the lack of accelerator classes.- Specified by:
startupin interfaceApplication.Component- Overrides:
startupin classIIOImageProcessor
-
getDimensions
@Deprecated public ImageProcessor.Dimensions getDimensions(InputStream imageStream) throws ImageProcessor.ImageProcessorException, IOException
Deprecated.Description copied from interface:ImageProcessorHow big is the image contained in this stream?- Specified by:
getDimensionsin interfaceImageProcessor- Overrides:
getDimensionsin classIIOImageProcessor- Parameters:
imageStream- The image stream. This method will not close it.- Returns:
- The dimensions of the image. Never returns null.
- Throws:
ImageProcessor.ImageProcessorException- if the stream does not contain a valid image.IOException- if the stream cannot be read.
-
cropAndScale
@Deprecated public InputStream cropAndScale(InputStream mainImageStream, ImageProcessor.CropRectangle crop, ImageProcessor.Dimensions limits) throws ImageProcessor.ImageProcessorException, IOException
Deprecated.Description copied from class:IIOImageProcessorCrop the main image according to this rectangle, and scale it to the correct size for a thumbnail.- Specified by:
cropAndScalein interfaceImageProcessor- Overrides:
cropAndScalein classIIOImageProcessor- Parameters:
mainImageStream- The image stream. This method will not close it.crop- x and y determine the upper left corner of the crop area. height and width determine the size of the crop area.limits- The resulting image will be reduced as necessary to fit within these dimensions.- Returns:
- The new image. Client code should close this stream after reading. Never returns null.
- Throws:
ImageProcessor.ImageProcessorException- If the image is smaller than the minimum crop size, or if there is another problem cropping the image.IOException- if the image stream cannot be read.
-
-