public abstract class ImageMagickThumbnailFilter extends MediaFilter
| 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) |
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)
FormatFilteroldFilename - name of source bitstreampublic String getBundleName()
public String getFormatString()
public String getDescription()
public 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 errorCopyright © 2022 LYRASIS. All rights reserved.