org.mmbase.util.images
Class ImageMagickImageInformer

java.lang.Object
  extended by org.mmbase.util.images.ImageMagickImageInformer
All Implemented Interfaces:
ImageInformer

public class ImageMagickImageInformer
extends Object
implements ImageInformer

Informs about a image using the 'identify' binary of ImageMagick.

Since:
MMBase-1.8
Version:
$Id: ImageMagickImageInformer.java 38327 2009-09-01 21:14:16Z michiel $
Author:
Michiel Meeuwissen

Constructor Summary
ImageMagickImageInformer()
           
 
Method Summary
 Dimension getDimension(byte[] input)
           
protected  Dimension getDimension(File file)
           
 Dimension getDimension(InputStream input)
           
 void init(Map<String,String> params)
           
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageMagickImageInformer

public ImageMagickImageInformer()
Method Detail

init

public void init(Map<String,String> params)
Specified by:
init in interface ImageInformer

getDimension

protected Dimension getDimension(File file)
                          throws IOException
Throws:
IOException

getDimension

public Dimension getDimension(InputStream input)
                       throws IOException
Specified by:
getDimension in interface ImageInformer
Throws:
IOException

getDimension

public Dimension getDimension(byte[] input)
                       throws IOException
Specified by:
getDimension in interface ImageInformer
Throws:
IOException

main

public static void main(String[] args)


MMBase 2.0-SNAPSHOT - null