Skip to content

Commit

Permalink
Fix for vips intervention image backend
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
forsdahl committed Aug 7, 2023
1 parent 1730623 commit 5d88533
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/InterventionBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,6 @@ public function getImageResource()
if ($error) {
$this->markFailed($hash, $variant, $error);
}
if (isset($path) && file_exists($path)) {
unlink($path);
}
}
return null;
}
Expand Down

0 comments on commit 5d88533

Please sign in to comment.