We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70aba67 commit eecae14Copy full SHA for eecae14
src/Controllers/ResizeController.php
@@ -19,7 +19,11 @@ public function getResize()
19
$ratio = 1.0;
20
$image = request('img');
21
22
- $original_image = Image::make($this->lfm->setName($image)->path('absolute'));
+ if (class_exists(InterventionImageV2::class)) {
23
+ $original_image = InterventionImageV2::make($this->lfm->setName($image)->path('absolute'));
24
+ } else {
25
+ $original_image = InterventionImageV3::read($this->lfm->setName($image)->path('absolute'));
26
+ }
27
$original_width = $original_image->width();
28
$original_height = $original_image->height();
29
0 commit comments