cancel
Showing results for 
Search instead for 
Did you mean: 

Same install error through browser and terminal. corrupt JPEG data

Same install error through browser and terminal. corrupt JPEG data

I have been having an awful time trying to get past this. I downloaded 2.2.6 directly from magento. I've tried installing it through the browser and ssh and keep getting this error. 

 

[Exception]
Warning: getimagesize(): corrupt JPEG data: 17 extraneous bytes before marker in /home/xxxxxx/public_html/vendor/magento/framework
/Image/Adapter/AbstractAdapter.php on line 304

 

The code there is: 

 

   /**
     * Assign image width, height, fileType to object properties using getimagesize function
     *
     * @return int|null
     */
    public function getImageType()
    {
        if ($this->_fileType) {
            return $this->_fileType;
        } else {
            list($this->_imageSrcWidth, $this->_imageSrcHeight, $this->_fileType) = getimagesize($this->_fileName);
            return $this->_fileType;
        }
    }

Can anyone offer assistance on why this is happening and how I fix it? I can't get past it no matter what I try.