mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-13 13:03:11 +00:00
Port PR1709 to master
This commit is contained in:
@@ -46,11 +46,4 @@ public class ImageMagickPdfThumbnailFilter extends ImageMagickThumbnailFilter {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final String[] PDF = {"Adobe PDF"};
|
|
||||||
@Override
|
|
||||||
public String[] getInputMIMETypes()
|
|
||||||
{
|
|
||||||
return PDF;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -34,7 +34,7 @@ import org.dspace.core.ConfigurationManager;
|
|||||||
* thumbnail.maxwidth, thumbnail.maxheight, the size we want our thumbnail to be
|
* thumbnail.maxwidth, thumbnail.maxheight, the size we want our thumbnail to be
|
||||||
* no bigger than. Creates only JPEGs.
|
* no bigger than. Creates only JPEGs.
|
||||||
*/
|
*/
|
||||||
public abstract class ImageMagickThumbnailFilter extends MediaFilter implements SelfRegisterInputFormats
|
public abstract class ImageMagickThumbnailFilter extends MediaFilter
|
||||||
{
|
{
|
||||||
protected static int width = 180;
|
protected static int width = 180;
|
||||||
protected static int height = 120;
|
protected static int height = 120;
|
||||||
@@ -188,21 +188,4 @@ public abstract class ImageMagickThumbnailFilter extends MediaFilter implements
|
|||||||
return true; //assume that the thumbnail is a custom one
|
return true; //assume that the thumbnail is a custom one
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public String[] getInputMIMETypes()
|
|
||||||
{
|
|
||||||
return ImageIO.getReaderMIMETypes();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String[] getInputDescriptions()
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String[] getInputExtensions()
|
|
||||||
{
|
|
||||||
return ImageIO.getReaderFileSuffixes();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user