|
@@ -20,7 +20,7 @@ class UploadController extends Controller
|
|
|
|
|
|
|
|
|
$filePath = $request->file('image')->getRealPath();
|
|
|
- if (in_array($kuoname, ['jpg', 'jpeg', 'png'])) {
|
|
|
+ if (in_array($kuoname, ['jpg', 'gif', 'png'])) {
|
|
|
$width = Image::make($filePath)->width();
|
|
|
$height = Image::make($filePath)->height();
|
|
|
|
|
@@ -50,7 +50,7 @@ class UploadController extends Controller
|
|
|
$kuoname = $files[$i]->getClientOriginalExtension();
|
|
|
$filePath = $files[$i]->getRealPath();
|
|
|
|
|
|
- if (in_array($kuoname, ['jpg', 'jpeg', 'png'])) {
|
|
|
+ if (in_array($kuoname, ['jpg', 'gif', 'png'])) {
|
|
|
$width = Image::make($filePath)->width();
|
|
|
$height = Image::make($filePath)->height();
|
|
|
|