App\Libraries\ImageProcessor::basicCheck PHP Method

basicCheck() public method

public basicCheck ( )
    public function basicCheck()
    {
        $this->parseInput();
        if ($this->inputFileSize > $this->hardMaxFileSize) {
            throw new ImageProcessorException(trans('users.show.edit.cover.upload.too_large'));
        }
        if ($this->inputDim === false || !in_array($this->inputDim[2], $this->allowedTypes, true)) {
            throw new ImageProcessorException(trans('users.show.edit.cover.upload.unsupported_format'));
        }
        if ($this->inputDim[0] > $this->hardMaxDim[0] || $this->inputDim[1] > $this->hardMaxDim[1]) {
            throw new ImageProcessorException(trans('users.show.edit.cover.upload.too_large'));
        }
    }