Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.picture.magick.utils
Class ImageCropperAndResizer

java.lang.Object
  extended by org.nuxeo.ecm.platform.picture.magick.MagickExecutor
      extended by org.nuxeo.ecm.platform.picture.magick.utils.ImageCropperAndResizer

public class ImageCropperAndResizer
extends MagickExecutor

Unit command to crop and resize an picture.

Author:
tiry

Constructor Summary
ImageCropperAndResizer()
           
 
Method Summary
static void cropAndResize(java.lang.String inputFilePath, java.lang.String outputFilePath, int tileWidth, int tileHeight, int offsetX, int offsetY, int targetWidth, int targetHeight)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageCropperAndResizer

public ImageCropperAndResizer()
Method Detail

cropAndResize

public static void cropAndResize(java.lang.String inputFilePath,
                                 java.lang.String outputFilePath,
                                 int tileWidth,
                                 int tileHeight,
                                 int offsetX,
                                 int offsetY,
                                 int targetWidth,
                                 int targetHeight)
                          throws java.lang.Exception
Throws:
java.lang.Exception

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.