If no height is given, the width will be used as a height, thus creating a square crop
public cropFromCenter ( integer $cropWidth, integer $cropHeight = null ) : GdThumb | ||
$cropWidth | integer | |
$cropHeight | integer | |
return | GdThumb |
public cropFromCenter ( integer $cropWidth, integer $cropHeight = null ) : GdThumb | ||
$cropWidth | integer | |
$cropHeight | integer | |
return | GdThumb |