public class ScaleImage extends Object
Scale the original image into 4 different size Types (small, medium, large, detail)
Modifier and Type | Field and Description |
---|---|
static String |
module |
static String |
resource |
static List<String> |
sizeTypeList |
Constructor and Description |
---|
ScaleImage() |
Modifier and Type | Method and Description |
---|---|
static Map<String,Object> |
scaleImageInAllSize(Map<String,? extends Object> context,
String filenameToUse,
String viewType,
String viewNumber)
scaleImageInAllSize
|
static Map<String,Object> |
scaleImageManageInAllSize(Map<String,? extends Object> context,
String filenameToUse,
String viewType,
String viewNumber,
String imageType) |
public static final String module
public static final String resource
public static Map<String,Object> scaleImageInAllSize(Map<String,? extends Object> context, String filenameToUse, String viewType, String viewNumber) throws IllegalArgumentException, ImagingOpException, IOException, org.jdom.JDOMException
Scale the original image into all different size Types (small, medium, large, detail)
context
- ContextfilenameToUse
- Filename of future image filesviewType
- "Main" view or "additional" viewviewNumber
- If it's the main view, viewNumber = "0"IllegalArgumentException
- Any parameter is nullImagingOpException
- The transform is non-invertibleIOException
- Error prevents the document from being fully parsedorg.jdom.JDOMException
- Errors occur in parsingpublic static Map<String,Object> scaleImageManageInAllSize(Map<String,? extends Object> context, String filenameToUse, String viewType, String viewNumber, String imageType) throws IllegalArgumentException, ImagingOpException, IOException, org.jdom.JDOMException
IllegalArgumentException
ImagingOpException
IOException
org.jdom.JDOMException