Image dimension can't be recognized (.webp)

We’ve set up a new staging server with docker and while everything works fine on our dev and live server we’re getting the following error with webp images:

Message Division by zero is not possible
Stacktrace The Error Occurred in
/var/www/preside/system/services/assetManager/AssetManagerService.cfc: line 1380

1378: }
1379: if ( transformation.method == “shrinkToFit” ) {
1380: var currentAspectRatio = arguments.width / arguments.height;
1381: var targetAspectRatio = transformArgs.width / transformArgs.height;
1382: var requiresShrinking = arguments.width > transformArgs.width || arguments.height > transformArgs.height;|

The docker container is running ubuntu and libvips is installed.
Any idea what’s wrong here? In the database the dimension is set to 0, which explains the error above.
Can I somehow check what’s going on internally??

Thanks for help,
Michi

Dang. But yes, you should be able to trace the upload process and see where it is extracting image information before saving to the DB. That would be the place to focus (the derivative generation phase is too late). We should fail gracefully here though.

1 Like