Skip to content

Commit

Permalink
Add flip
Browse files Browse the repository at this point in the history
  • Loading branch information
riasvdv committed Jan 20, 2025
1 parent 2c4b60f commit 58fe4e5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/Drivers/Vips/VipsDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,16 @@ public function exif(): array

public function flip(FlipDirection $flip): static
{
// TODO: Implement flip() method.
if ($flip === FlipDirection::Both) {
$this->image = $this->image->flip(FlipDirection::Vertical->value);
$this->image = $this->image->flip(FlipDirection::Horizontal->value);

return $this;
}

$this->image = $this->image->flip($flip->value);

return $this;
}

public function pixelate(int $pixelate): static
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 58fe4e5

Please sign in to comment.