the original.
If you need to scale images per axis it is best to do it simply by
-calling scaleX and scaleY. You can pass either 'scalefactor' or
+calling scaleX() or scaleY(). You can pass either 'scalefactor' or
'pixels' to both functions.
+scaleX() will scale along the X dimension, changing the width of the
+image:
+
$newimg = $img->scaleX(pixels=>400); # 400x500
$newimg = $img->scaleX(scalefactor=>0.25) # 175x500
+
+scaleY() will scale along the Y dimension, changing the height of the
+image:
+
$newimg = $img->scaleY(pixels=>400); # 700x400
$newimg = $img->scaleY(scalefactor=>0.25) # 700x125