public abstract class ImageMagickThumbnailFilter extends MediaFilter implements SelfRegisterInputFormats
| Modifier and Type | Field and Description |
|---|---|
protected static int |
height |
protected ItemService |
itemService |
protected static int |
width |
| Constructor and Description |
|---|
ImageMagickThumbnailFilter() |
| Modifier and Type | Method and Description |
|---|---|
String |
getBundleName() |
String |
getDescription() |
String |
getFilteredName(String oldFilename)
Get a filename for a newly created filtered bitstream
|
String |
getFormatString() |
File |
getImageFile(File f,
int page,
boolean verbose) |
String[] |
getInputDescriptions() |
String[] |
getInputExtensions() |
String[] |
getInputMIMETypes() |
File |
getThumbnailFile(File f,
boolean verbose) |
File |
inputStreamToTempFile(InputStream source,
String prefix,
String suffix) |
boolean |
preProcessBitstream(Context c,
Item item,
Bitstream source,
boolean verbose)
Perform any pre-processing of the source bitstream *before* the actual
filtering takes place in MediaFilterManager.processBitstream().
|
postProcessBitstreamclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDestinationStreamprotected static int width
protected static int height
protected final ItemService itemService
public String getFilteredName(String oldFilename)
FormatFiltergetFilteredName in interface FormatFilteroldFilename - name of source bitstreampublic String getBundleName()
getBundleName in interface FormatFilterpublic String getFormatString()
getFormatString in interface FormatFilterpublic String getDescription()
getDescription in interface FormatFilterpublic File inputStreamToTempFile(InputStream source, String prefix, String suffix) throws IOException
IOExceptionpublic File getThumbnailFile(File f, boolean verbose) throws IOException, InterruptedException, org.im4java.core.IM4JavaException
IOExceptionInterruptedExceptionorg.im4java.core.IM4JavaExceptionpublic File getImageFile(File f, int page, boolean verbose) throws IOException, InterruptedException, org.im4java.core.IM4JavaException
IOExceptionInterruptedExceptionorg.im4java.core.IM4JavaExceptionpublic boolean preProcessBitstream(Context c, Item item, Bitstream source, boolean verbose) throws Exception
MediaFilterReturn true if pre-processing is successful (or no pre-processing is necessary). Return false if bitstream should be skipped for any reason.
preProcessBitstream in interface FormatFilterpreProcessBitstream in class MediaFilterc - contextitem - item containing bitstream to processsource - source bitstream to be processedverbose - verbose modeException - if errorpublic String[] getInputMIMETypes()
getInputMIMETypes in interface SelfRegisterInputFormatspublic String[] getInputDescriptions()
getInputDescriptions in interface SelfRegisterInputFormatspublic String[] getInputExtensions()
getInputExtensions in interface SelfRegisterInputFormatsCopyright © 2016 DuraSpace. All rights reserved.