src/bulletproof.php
public function setDimension($maxWidth, $maxHeight)
    {
      if ( (int) $maxWidth && (int) $maxHeight) {
        $this->dimensions = array($maxWidth, $maxHeight);
      } else {
        $this->error = $this->commonUploadErrors[$this->language]['ERROR_03'];
      }

      return $this;
    }
public function setDimension($maxWidth, $maxHeight)
    {
      if ( (int) $maxWidth && (int) $maxHeight) {
        $this->dimensions = array($maxWidth, $maxHeight);
      } else {
        $this->error = $this->commonUploadErrors[$this->language]['ERROR_03'];
      }

      return $this;
    }
public function setDimension ( $ maxWidth , $ maxHeight ) { if ( ( int ) $ maxWidth && ( int ) $ maxHeight ) { $ this -> dimensions = array ( $ maxWidth , $ maxHeight ) ; } else { $ this -> error = $ this -> commonUploadErrors [ $ this -> language ] [ 'ERROR_03' ] ; } return $ this ; }
Sets max image height and width limit.

@param $maxWidth int max width value
@param $maxHeight int max height value

@return $this
Sets max image height and width limit .