diff --git a/app/application/app/Services/Storage/Image/ResizeCommandHandler.php b/app/application/app/Services/Storage/Image/ResizeCommandHandler.php index ba0d285..0ba829b 100644 --- a/app/application/app/Services/Storage/Image/ResizeCommandHandler.php +++ b/app/application/app/Services/Storage/Image/ResizeCommandHandler.php @@ -9,7 +9,7 @@ final readonly class ResizeCommandHandler { public function resize(Storage $storage, int $width, int $height): Storage { - $image = InterventionImage::read($storage->path); + $image = InterventionImage::decodePath($storage->path); if ($image->width() < $width && $image->height() < $height) { return $storage; } @@ -23,7 +23,7 @@ final readonly class ResizeCommandHandler public function width(Storage $storage, int $width): Storage { - $image = InterventionImage::read($storage->path); + $image = InterventionImage::decodePath($storage->path); if ($image->width() < $width) { return $storage; } @@ -37,7 +37,7 @@ final readonly class ResizeCommandHandler public function height(Storage $storage, int $height): Storage { - $image = InterventionImage::read($storage->path); + $image = InterventionImage::decodePath($storage->path); if ($image->height() < $height) { return $storage; }