From 5d8853348d6b3a6f9fa6ee5883177aa58b158087 Mon Sep 17 00:00:00 2001 From: Niklas Forsdahl Date: Fri, 20 Jan 2023 14:14:45 +0200 Subject: [PATCH] Fix for vips intervention image backend The vips intervetion image backend isn't working right now, because InterventionBackend unlinks the temporary file too early. It is removed before the actual libvips commands are run against it, which makes them fail. The temporary file is removed in the destructor of InterventionBackend anyway, so this section is unnecessary. --- src/InterventionBackend.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/InterventionBackend.php b/src/InterventionBackend.php index 0f817378..b47bc4fd 100644 --- a/src/InterventionBackend.php +++ b/src/InterventionBackend.php @@ -293,9 +293,6 @@ public function getImageResource() if ($error) { $this->markFailed($hash, $variant, $error); } - if (isset($path) && file_exists($path)) { - unlink($path); - } } return null; }