OpenWGA 7.11 - TMLScript reference

Method :


On object WGA
Usage Creates an ImageScaler object to perform scaling operations on an image file

ImageScaler objects are capable of scaling images to custom sizes. This method needs the image to be available as a file in the servers file system.

For backward compatibility there still is a method "createImageScaler()" available on TMLContext whose use is discouraged since OpenWGA 5.3.


Variant 1

file (Java file object  of type

File whose data is loaded to the scaler object. You may use files uploaded to TMLForm objects by using tmlform.getFile() to get a filesystem representation of them.

Variant 2

inputStream (Java input stream object of type

An input stream providing image data from any source.

Return value A new ImageScaler object holding the image data of the file
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events