public function resizeSquare($newSize, $fillRed = 255, $fillGreen = 255, $fillBlue = 255)
    {
        return $this->resizeAspectRatio($newSize, $newSize, $fillRed, $fillGreen, $fillBlue);
    }
public function resizeSquare($newSize, $fillRed = 255, $fillGreen = 255, $fillBlue = 255)
    {
        return $this->resizeAspectRatio($newSize, $newSize, $fillRed, $fillGreen, $fillBlue);
    }
public function resizeSquare ( $ newSize , $ fillRed = 255 , $ fillGreen = 255 , $ fillBlue = 255 ) { return $ this -> resizeAspectRatio ( $ newSize , $ newSize , $ fillRed , $ fillGreen , $ fillBlue ) ; }
Resize the image in a square format and maintain the aspect ratio. The space are filled the RGB color provided.

@param int $newSize The new size of desired image (width and height are equals)
@param int $fillRed
@param int $fillGreen
@param int $fillBlue
@return ImageUtil
@throws \ByJG\ImageUtil\Exception\ImageUtilException
Resize the image in a square format and maintain the aspect ratio . The space are filled the RGB color provided .