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
public class ImageMagickVideoThumbnailFilter extends ImageMagickThumbnailFilter
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 Constructor Description ImageMagickVideoThumbnailFilter()
-
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.FilegetThumbnailFile(File f, boolean verbose)-
Methods inherited from class org.dspace.app.mediafilter.ImageMagickThumbnailFilter
getBundleName, getDescription, getFilteredName, getFormatString, getImageFile, 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
-
getThumbnailFile
public File getThumbnailFile(File f, boolean verbose) throws IOException, InterruptedException, org.im4java.core.IM4JavaException
- Overrides:
getThumbnailFilein classImageMagickThumbnailFilter- Throws:
IOExceptionInterruptedExceptionorg.im4java.core.IM4JavaException
-
-