6 Replies Latest reply on Sep 24, 2007 9:44 AM by Waseem Quraishi

    s:transform server side usage

    Waseem Quraishi Newbie

      I see this in the documentation and was hoping someone could elaborate. I want to use the s:transformImageSize within a method of my SEAM component. Basically when a user uploads a photo, resize the image to a specific size. Thanks.

      It's easy to create your own transform - create a UIComponent which implements
      org.jboss.seam.ui.graphicImage.ImageTransform. Inside the applyTrans-
      form()method use image.getBufferedImage() to get the original image and im-
      age.setBufferedImage() to set your transformed image. Transforms are applied
      in the order specified in the view.