Class ImageMagickThumbnailFilter

    • Constructor Detail

      • ImageMagickThumbnailFilter

        public ImageMagickThumbnailFilter()
    • Method Detail

      • getFilteredName

        public String getFilteredName​(String oldFilename)
        Description copied from interface: FormatFilter
        Get a filename for a newly created filtered bitstream
        Parameters:
        oldFilename - name of source bitstream
        Returns:
        filename generated by the filter - for example, document.pdf becomes document.pdf.txt
      • getBundleName

        public String getBundleName()
        Returns:
        String bundle name
      • getFormatString

        public String getFormatString()
        Returns:
        String bitstreamformat
      • getDescription

        public String getDescription()
        Returns:
        String bitstreamDescription
      • preProcessBitstream

        public boolean preProcessBitstream​(Context c,
                                           Item item,
                                           Bitstream source,
                                           boolean verbose)
                                    throws Exception
        Description copied from class: MediaFilter
        Perform any pre-processing of the source bitstream *before* the actual filtering takes place in MediaFilterManager.processBitstream().

        Return true if pre-processing is successful (or no pre-processing is necessary). Return false if bitstream should be skipped for any reason.

        Specified by:
        preProcessBitstream in interface FormatFilter
        Overrides:
        preProcessBitstream in class MediaFilter
        Parameters:
        c - context
        item - item containing bitstream to process
        source - source bitstream to be processed
        verbose - verbose mode
        Returns:
        true if bitstream processing should continue, false if this bitstream should be skipped
        Throws:
        Exception - if error