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:
parent
35c54d05c1
commit
5fa788b362
4 changed files with 29 additions and 17 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue