Package org.dspace.app.mediafilter
Class ImageMagickImageThumbnailFilter
- java.lang.Object
-
- org.dspace.app.mediafilter.MediaFilter
-
- org.dspace.app.mediafilter.ImageMagickThumbnailFilter
-
- org.dspace.app.mediafilter.ImageMagickImageThumbnailFilter
-
- All Implemented Interfaces:
FormatFilter
public class ImageMagickImageThumbnailFilter extends ImageMagickThumbnailFilter
Filter image bitstreams, scaling the image to be within the bounds of thumbnail.maxwidth, thumbnail.maxheight, the size we want our thumbnail to be no bigger than. Creates only JPEGs.
-
-
Field Summary
-
Fields inherited from class org.dspace.app.mediafilter.ImageMagickThumbnailFilter
height, itemService, width
-
-
Constructor Summary
Constructors Constructor Description ImageMagickImageThumbnailFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamgetDestinationStream(Item currentItem, InputStream source, boolean verbose)Read the source stream and produce the filtered content.-
Methods inherited from class org.dspace.app.mediafilter.ImageMagickThumbnailFilter
getBundleName, getDescription, getFilteredName, getFormatString, getImageFile, getThumbnailFile, inputStreamToTempFile, preProcessBitstream
-
Methods inherited from class org.dspace.app.mediafilter.MediaFilter
postProcessBitstream
-
-
-
-
Method Detail
-
getDestinationStream
public InputStream getDestinationStream(Item currentItem, InputStream source, boolean verbose) throws Exception
Description copied from interface:FormatFilterRead the source stream and produce the filtered content.- Parameters:
currentItem- itemsource- source input streamverbose- verbose mode- Returns:
- InputStream the resulting input stream
- Throws:
Exception- if error
-
-