Resize
Resize
If you want to resize both height and width at the same time you can use the resize method.
$image = sGallery::file(string $pathToImage)->resize(250, 200);
If you want a square image, you can specify only one width parameter.
$image = sGallery::file($gallery->path)->resize(250);