Skip to content

Commit

Permalink
return $this on save
Browse files Browse the repository at this point in the history
  • Loading branch information
chregu committed Oct 4, 2022
1 parent d59e6ce commit 8b07a4b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Imagine/Vips/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,8 @@ public function save($path = null, array $options = [])

if (null !== $method) {
try {
return $vips->$method($path, $saveOptions);
$vips->$method($path, $saveOptions);
return $this;
} catch (\Jcupitt\Vips\Exception $e) {
// try the alternative approach if method is magicksave, if we fail here, mainly means that the magicksave stuff isn't
// installed
Expand Down

0 comments on commit 8b07a4b

Please sign in to comment.