Skip to content

Commit

Permalink
Merge branch 'add-vips-driver' of github.com:spatie/image into add-vi…
Browse files Browse the repository at this point in the history
…ps-driver
  • Loading branch information
freekmurze committed Jan 22, 2025
2 parents 26c8245 + e274f39 commit 99f8a63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/Drivers/Vips/VipsDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,7 @@ public function manualCrop(
int $height,
?int $x = 0,
?int $y = 0
): static
{
): static {
$cropped = new Size($width, $height);
$position = new Point($x ?? 0, $y ?? 0);

Expand Down
2 changes: 1 addition & 1 deletion tests/Manipulations/ManualCropTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
int $expectedWidth,
int $expectedHeight,
) {
$fileName = 'manual-crop-' . implode('-', $dimensions) . "-{$expectedWidth}-{$expectedHeight}.png";
$fileName = 'manual-crop-'.implode('-', $dimensions)."-{$expectedWidth}-{$expectedHeight}.png";

$targetFile = $this->tempDir->path("{$driver->driverName()}/{$fileName}");

Expand Down

0 comments on commit 99f8a63

Please sign in to comment.