fr.paris.lutece.plugins.stock.utils
Class ImageUtils

java.lang.Object
  extended by fr.paris.lutece.plugins.stock.utils.ImageUtils

public final class ImageUtils
extends java.lang.Object

Class for manipulating images

Author:
abataille

Method Summary
static java.io.File createThumbnail(java.io.File fImage, int width, int height)
          Create a thumbnail and write it into a new file prefixed by tb_ (images/lutece.jpg => images/lutece_tb.jpg)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createThumbnail

public static java.io.File createThumbnail(java.io.File fImage,
                                           int width,
                                           int height)
                                    throws java.io.IOException
Create a thumbnail and write it into a new file prefixed by tb_ (images/lutece.jpg => images/lutece_tb.jpg)

Parameters:
fImage - source image file
width - max width of the thumbnail
height - the height
Throws:
java.io.IOException - Signals that an I/O exception has occurred.


Copyright © 2012 Mairie de Paris. All Rights Reserved.