While uploading PNG image, it throws an error and the error log says

"Warning: file_get_contents(): stream does not support seeking in /var/www/html/RootFolder/vendor/magento/framework/Image/Adapter/Gd2.php on line 294".

The line 294 has the following code:

return (ord(file_get_contents($fileName, false, null, 25, 1)) & 6 & 4) == 4;

But it works fine when I upload a jpg image.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.