OpenWGA 7.9 - TMLScript reference

ImageScaler
Property :

format

On object ImageScaler
Usage Directly sets the target format for storage
Description This property grants direct access to the target format that will be used by Java Advanced Imaging API when storing the image data. It allows all target formats that are available to the JAI operation "encode" on your Java platform.

For simplicity you should prefer the dedicated methods scaler.useJPEGForOutput() and scaler.usePNGForOutput() to set the output format.
Default value "JPEG"
Writable True
Return value A target format name of the Java Advanced Imaging API (String)
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events
    portletevent