public final class ImageMagicImageHandler extends Object implements ImageHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
GIF |
static String |
JPEG |
static String |
JPG |
static String |
PNG |
| Modifier and Type | Method and Description |
|---|---|
ImageSpec |
convert(ImageConverterHelper h,
ImageSpec source,
int page,
String targetMime) |
static ImageMagicImageHandler |
getInstance()
This returns the ImageMagic manipulator *if* it is available.
|
ImageInfo |
identify(File input)
Runs the "identify" call and returns per-page info.
|
ImageSpec |
scale(ImageConverterHelper h,
ImageSpec source,
int page,
int width,
int height,
String targetMime) |
ImageSpec |
thumbnail(ImageConverterHelper h,
ImageSpec source,
int page,
int width,
int height,
String targetMime)
Create a thumbnail from a source image spec.
|
public static final String PNG
public static final String JPEG
public static final String JPG
public static final String GIF
public static ImageMagicImageHandler getInstance()
public ImageInfo identify(File input) throws Exception
identify in interface ImageHandlerinput - Exceptionpublic ImageSpec thumbnail(ImageConverterHelper h, ImageSpec source, int page, int width, int height, String targetMime) throws Exception
thumbnail in interface ImageHandlersource - Exceptionpublic ImageSpec scale(ImageConverterHelper h, ImageSpec source, int page, int width, int height, String targetMime) throws Exception
scale in interface ImageHandlerExceptionpublic ImageSpec convert(ImageConverterHelper h, ImageSpec source, int page, String targetMime) throws Exception
convert in interface ImageHandlerExceptionCopyright © 2017 etc.to. All rights reserved.