public function resizeAndOrCrop($width, $height, $options) {
        if (!$width && !$height) return $this;
        if (isset($options['quadrant'])) return $this->cropQuadrant($width, $height, $options);
        if (array_key_exists('pad', $options)) $this->pad($width, $height, $options);
        if (array_key_exists('resize', $options) || !$width || !$height) return $this->resize($width, $height);
        return $this->crop($width, $height);
    }
public function resizeAndOrCrop($width, $height, $options) {
        if (!$width && !$height) return $this;
        if (isset($options['quadrant'])) return $this->cropQuadrant($width, $height, $options);
        if (array_key_exists('pad', $options)) $this->pad($width, $height, $options);
        if (array_key_exists('resize', $options) || !$width || !$height) return $this->resize($width, $height);
        return $this->crop($width, $height);
    }
public function resizeAndOrCrop ( $ width , $ height , $ options ) { if ( ! $ width && ! $ height ) return $ this ; if ( isset ( $ options [ 'quadrant' ] ) ) return $ this -> cropQuadrant ( $ width , $ height , $ options ) ; if ( array_key_exists ( 'pad' , $ options ) ) $ this -> pad ( $ width , $ height , $ options ) ; if ( array_key_exists ( 'resize' , $ options ) || ! $ width || ! $ height ) return $ this -> resize ( $ width , $ height ) ; return $ this -> crop ( $ width , $ height ) ; }
Determine which resize and crop to apply

@param integer $width
@param integer $height
@param array $options
@return $this
Determine which resize and crop to apply