Update intervention/image package

Also fix a unit test, the image package had changed how it loads images
so my test for is a file upload an image was failing
This commit is contained in:
Jonny Barnes 2024-02-17 17:47:12 +00:00
parent 35c54d05c1
commit 5fa788b362
Signed by: jonny
SSH key fingerprint: SHA256:CTuSlns5U7qlD9jqHvtnVmfYV3Zwl2Z7WnJ4/dqOaL8
4 changed files with 29 additions and 17 deletions

View file

@ -149,7 +149,7 @@ class MicropubMediaController extends Controller
try {
$image = $manager->read($request->file('file'));
$width = $image->width();
} catch (DecoderException) {
} catch (Exception) {
// not an image
$width = null;
}