$file->scale($by)

Scales the image up or down by value

Example

// scale the image down by 50%
echo $page->image()->scale(0.5);

// scale the image up
echo $page->image()->scale(1.5);