$file->scale($by)
Scales the image up or down by value
- since: Kirby 2.3.0
-
return ($file)
Example
// scale the image down by 50%
echo $page->image()->scale(0.5);
// scale the image up
echo $page->image()->scale(1.5);
Scales the image up or down by value
// scale the image down by 50%
echo $page->image()->scale(0.5);
// scale the image up
echo $page->image()->scale(1.5);