Declare ext-exif as a required PHP extension
ImageUploadRequest::__construct() unconditionally calls Image::make(...) ->orientate() on every uploaded image (asset photos, user avatars, company logos, etc.). Intervention\Image\Commands\ExifCommand throws NotSupportedException when ext-exif is unavailable; ImageUploadRequest catches NotReadableException but not NotSupportedException, so the exception surfaces to the user as an unhandled 500 for any image upload that carries an EXIF Orientation tag (i.e. virtually every smartphone photo). Add ext-exif to the require block so composer install fails fast instead of letting the gap surface as a runtime 500. --- Disclosure: drafted with a coding agent's help while investigating which PHP extensions a containerized Snipe-IT deployment needs but the package manifest doesn't declare. Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
"require": {
|
||||
"php": "^8.2",
|
||||
"ext-curl": "*",
|
||||
"ext-exif": "*",
|
||||
"ext-fileinfo": "*",
|
||||
"ext-iconv": "*",
|
||||
"ext-json": "*",
|
||||
|
||||
Reference in New Issue
Block a user