Site icon CodeRevolution Support

Issue while importing PNG images

Hello, I am importing this feed https://decrypt.co/feed and I set it to save the featured image locally. Whenever it encounters a PNG image, the relative media file in WordPress is broken, and in the error log I have this sequence of warnings and notice messages:
<div> <div>[28-Sep-2022 07:19:18 UTC] PHP Warning:  imagepng(): gd-png error: compression level must be 0 through 9 in /app/wordpress/wp-content/plugins/rss-feed-post-generator-echo/res/ImageResize/ImageResize.php on line 336</div> <div>[28-Sep-2022 07:19:19 UTC] PHP Notice:  getimagesize(): Error reading from /app/wordpress/wp-content/uploads/2022/09/334-attachment.jpg! in /app/wordpress/wp-includes/media.php on line 5189</div> <div>[28-Sep-2022 07:19:19 UTC] PHP Notice:  exif_imagetype(): Error reading from /app/wordpress/wp-content/uploads/2022/09/334-attachment.jpg! in /app/wordpress/wp-includes/functions.php on line 3265</div> </div>
<div>Can it be fixed? Thank you!</div>
Exit mobile version