org.riotfamily.common.image
Class ImageMagickThumbnailer

java.lang.Object
  extended by org.riotfamily.common.image.ImageMagickThumbnailer
All Implemented Interfaces:
Thumbnailer

public class ImageMagickThumbnailer
extends Object
implements Thumbnailer

Thumbnailer that uses ImageMagick.

Author:
Felix Gnass [fgnass at neteye dot de]

Constructor Summary
ImageMagickThumbnailer(ImageMagick imageMagick)
           
 
Method Summary
 void renderThumbnail(File source, File dest, int width, int height, boolean fixedSize, String backgroundColor)
          Renders a thumbnail image of the source file to the specified destination.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageMagickThumbnailer

public ImageMagickThumbnailer(ImageMagick imageMagick)
Method Detail

renderThumbnail

public void renderThumbnail(File source,
                            File dest,
                            int width,
                            int height,
                            boolean fixedSize,
                            String backgroundColor)
                     throws IOException
Description copied from interface: Thumbnailer
Renders a thumbnail image of the source file to the specified destination.

Specified by:
renderThumbnail in interface Thumbnailer
Throws:
IOException