From 9a6604a40b37c720601794c1422888b204d1183d Mon Sep 17 00:00:00 2001 From: Leonid Nikitin Date: Sat, 20 Jun 2026 22:18:51 +0500 Subject: [PATCH] Replace `InterventionImage::read` with `InterventionImage::decodePath` for image processing --- .../app/Services/Storage/Image/ResizeCommandHandler.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; }