|
...
|
...
|
@@ -337,6 +337,7 @@ class CosService |
|
|
|
'CIProcess' => 'image/info',
|
|
|
|
]);
|
|
|
|
$info = simplexml_load_string($result['Body']);
|
|
|
|
@file_put_contents(storage_path('logs/crop_image_error.log'), var_export($info, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
$height = (int) $info->ImageHeight;
|
|
|
|
if($height > $maxHeight){
|
|
|
|
return $this->cropCosImage($pathUrl);
|
...
|
...
|
|