Package org.dspace.app.mediafilter
Class ImageMagickVideoThumbnailFilter
java.lang.Object
org.dspace.app.mediafilter.MediaFilter
org.dspace.app.mediafilter.ImageMagickThumbnailFilter
org.dspace.app.mediafilter.ImageMagickVideoThumbnailFilter
- All Implemented Interfaces:
FormatFilter
Filter video 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
configurationService, itemService, PRE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDestinationStream(Item currentItem, InputStream source, boolean verbose) Read the source stream and produce the filtered content.getThumbnailFile(File f, boolean verbose) Methods inherited from class org.dspace.app.mediafilter.ImageMagickThumbnailFilter
getBundleName, getDescription, getFilteredName, getFormatString, getImageFile, inputStreamToTempFile, preProcessBitstreamMethods inherited from class org.dspace.app.mediafilter.MediaFilter
postProcessBitstream
-
Constructor Details
-
ImageMagickVideoThumbnailFilter
public ImageMagickVideoThumbnailFilter()
-
-
Method Details
-
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
-
getThumbnailFile
public File getThumbnailFile(File f, boolean verbose) throws IOException, InterruptedException, org.im4java.core.IM4JavaException - Overrides:
getThumbnailFilein classImageMagickThumbnailFilter- Throws:
IOExceptionInterruptedExceptionorg.im4java.core.IM4JavaException
-