public function trim($options) {
        if (isset($options['trim'])) return $this->trimPixels($options['trim']);
        if (isset($options['trim_perc'])) return $this->trimPerc($options['trim_perc']);
        return $this;
    }
public function trim($options) {
        if (isset($options['trim'])) return $this->trimPixels($options['trim']);
        if (isset($options['trim_perc'])) return $this->trimPerc($options['trim_perc']);
        return $this;
    }
public function trim ( $ options ) { if ( isset ( $ options [ 'trim' ] ) ) return $ this -> trimPixels ( $ options [ 'trim' ] ) ; if ( isset ( $ options [ 'trim_perc' ] ) ) return $ this -> trimPerc ( $ options [ 'trim_perc' ] ) ; return $ this ; }
Determine which trim to apply.

@param array $options
@return $this
Determine which trim to apply .