OpenWGA 7.10 - TMLScript reference

TMLContext "this"
Method :

attachScaledImage(doc, scaler [, targetFileName))

On object TMLContext "this"
Usage Stores the image data on an ImageScaler object as attachment on a document
Description An ImageScaler object contains data of an image which may have been scaled or otherwise modified. This method extracts the image data and stores it as a file attachment on some WGAPI document that is capable of holding file attachments, for example a content document or a file container.
Parameters doc (WGAPI object WGDocument)
The document to attach the image to

scaler (ImageScaler):
The ImageScaler object holding the image data

targetFileName (String, optional):
The file name under which the image is to be attached to the document, without suffix which is automatically appended based on the output type. Omit this parameter to use the name of the file that initially was loaded to the ImageScaler object. However this may not be available if the image data was not loaded from a file.
Examples See ImageScaler