| java.lang.Object com.flexive.shared.media.FxMediaEngine
FxMediaEngine | public class FxMediaEngine (Code) | | Media engine
author: Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at) version: $Rev |
detectMimeType | public static String detectMimeType(byte[] header)(Code) | | Detect the mimetype of a file based on the first n bytes and the filename
Parameters: header - first n bytes of the file to examine detected mimetype |
detectMimeType | public static String detectMimeType(byte[] header, String fileName)(Code) | | Detect the mimetype of a file based on the first n bytes and the filename
Parameters: header - first n bytes of the file to examine Parameters: fileName - filename detected mimetype |
getImageMagickVersion | public static String getImageMagickVersion()(Code) | | Get the ImageMagick version as String
ImageMagick version as String |
hasImageMagickInstalled | public static boolean hasImageMagickInstalled()(Code) | | Is ImageMagick installed?
if ImageMagick is installed |
identify | public static FxMetadata identify(String mimeType, File file)(Code) | | Identify a file, returning metadata
Parameters: mimeType - if not null it will be used to call the correct identify routine Parameters: file - the file to identify metadata |
isImageMagickIdentifySupported | public static boolean isImageMagickIdentifySupported()(Code) | | We need at least version 6.3.x of ImageMagick to be able to parse identify output
can ImageMagick's identify be used? |
scale | public static int[] scale(File original, File scaled, String extension, int width, int height) throws FxApplicationException(Code) | | Scale an image and return the dimensions (width and height) as int array
Parameters: original - original file Parameters: scaled - scaled file Parameters: extension - extension Parameters: width - desired width Parameters: height - desired height actual width ([0]) and height ([1]) of scaled image throws: FxApplicationException - on errors |
|
|