LOL I learned my lesson once. Now I wait. And in this case, wait some more. Thanks for the quick response, future "no update needed" messages would be appreciated!
That enabled the process to bypass the problem image. Thank you!
However, upon investigating, the problem image is a panoramic photo with dimensions 12,368 x 3,776. The forum can display the image fine. This is still a bug, no?
That enabled the process to bypass the problem image. Thank you!
However, upon investigating, the problem image is a panoramic photo with dimensions 12,368 x 3,776. The forum can display the image fine. This is still a bug, no?
Hi Jeremy P! I'm running PHP 8.3.16. I'm not expecting image optimization on non-image attachments, but I do expect the procedure to skip non-image attachments without failing.
The problem I'm having is with the bulk conversion of existing images into webp format via Tools/Rebuild/Caches/Optimize Attachments, not with the upload/conversion of new images.
I ran Optimize Attachments and got the following error:
ErrorException: [E_WARNING] imagewebp(): gd-webp encoding failed
src/XF/Image/Gd.php:224
Generated by: Christo
Feb 25, 2025 at 10:31 AM
Stack trace
#0 [internal function]: XF::handlePhpError(2, '[E_WARNING] ima...', '/home/gmcrvfor/...'...
So I marked the file as being optimized manually but then encountered the error a few more times. Looking at the data in xf_attachment_data, the filenames that failed were all .pdf. It shouldn't be trying to turn these into .webp! This is a bug, right?
Disabled those addons and tried again via web (haven't tried CLI yet): Same error. FYI, the first time I ran this it got through >1000 images before dying, so I think it's choking on a particular image.