libpng warning: iCCP: known incorrect sRGB profile nothing appears to have broken.imagewebp/imagecreatefromwebp and skip over these images. This particular error is a warning, but at least one seems to be a fatal error where our opportunities for error handling are limited. In the latter case I think we'll need to try to skip the image the next time optimization runs, but we can't avoid the process crashing @Chris D is there any way I could bypass this error? I can't continue the optimization due to itIt's specific to certain images. The issue is that we don't catch certain errors fromimagewebp/imagecreatefromwebpand skip over these images. This particular error is a warning, but at least one seems to be a fatal error where our opportunities for error handling are limited. In the latter case I think we'll need to try to skip the image the next time optimization runs, but we can't avoid the process crashing.
Same error, it didn't workYou can try replacing line 224 of/src/XF/Image/Gd.phpwith:
PHP:$success = @imagewebp($this->image, $file, $quality);
E_WARNING), rather than a fatal error? You might want to try using Imagick instead. Otherwise you can try marking the problem file as optimized manually, and then running the tool again.SELECT data_id
FROM xf_attachment_data
WHERE optimized = 0
AND width > 0
ORDER BY data_id
LIMIT 1;
UPDATE xf_attachment_data
SET optimized = 1
WHERE data_id = 123; -- replace 123 with the data_id from the query above
We use essential cookies to make this site work, and optional cookies to enhance your experience.