public function pad($width, $height, $options) {
        if (!$height || !$width) throw new Exception('Croppa: Pad option needs width and height');
        $color = $options['pad'] ?: [255, 255, 255];
        $this->thumb->resize($width, $height)->pad($width, $height, $color);
        return $this;
    }
public function pad($width, $height, $options) {
        if (!$height || !$width) throw new Exception('Croppa: Pad option needs width and height');
        $color = $options['pad'] ?: [255, 255, 255];
        $this->thumb->resize($width, $height)->pad($width, $height, $color);
        return $this;
    }
public function pad ( $ width , $ height , $ options ) { if ( ! $ height || ! $ width ) throw new Exception ( 'Croppa: Pad option needs width and height' ) ; $ color = $ options [ 'pad' ] ? : [ 255 , 255 , 255 ] ; $ this -> thumb -> resize ( $ width , $ height ) -> pad ( $ width , $ height , $ color ) ; return $ this ; }
Pad an image to desired dimensions. Moves the image into the center and fills the rest with given color.

@param integer $width
@param integer $height
@param array $options
@return $this
Pad an image to desired dimensions . Moves the image into the center and fills the rest with given color .