Class ImageCompactor

java.lang.Object
org.imixs.marty.util.ImageCompactor

public class ImageCompactor extends Object
This ImageCompactor ejb provides a mechanism to resize new uploaded images (.jpg).

image.maxWidth = maximal width of a image, indicates if a image should be resized. image.fileExtension = indicates the file extension for images and photos

Version:
1.0
Author:
rsoika
  • Constructor Details

    • ImageCompactor

      public ImageCompactor()
  • Method Details

    • resize

      public void resize(org.imixs.workflow.ItemCollection workitem, int maxSize) throws Exception
      This method tests if an attached is a photo and need to be resized
      Parameters:
      ctx -
      Throws:
      Exception