OpenWGA 7.6 - TMLScript reference

ImageScaler
Method :

growToSize(width, height)

On object ImageScaler
Usage Enlargens the image to minimal sizes for both dimensions
Description This method automatically determines the smallest possible size of the image where both dimensions are equal or higher than the given parameter sizes while keeping the original aspect ratio. It then enlargens the image to that.Therefor the real target size is in almost all cases bigger on one dimension than the values specified.

Use this method to enforce a minimum size on images.

No operation is performed if the image already satisfies the given minimum sizes.
Parameters width (Number):
The minimum width of the image in pixels

height (Number):
The minimum height of the image in pixels
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events
    portletevent