scaleToSize(width, height [, keepRatio])
Scales the image to an absolute target size
This is a straightforward scaling method that will make the image scale to the exact given sizes, at least if it is not instructed to keep the aspect ratio.
If the aspect ratio should be kept - controllable on parameter "keepRatio" - the following behaviour is enforced:
Desired width of the image in pixels
Desired height of the image in pixels
keepRatio (Boolean, optional):
Controls if the aspect ratio of the image is to be reserved. See description for behaviour when true.
|Allowed in script types||