Skip to content

Commit

Permalink
Merge pull request #7 from spantaleev/add-resizing-type-force
Browse files Browse the repository at this point in the history
Add support for resizing-type=force
  • Loading branch information
crocodile2u authored Dec 19, 2021
2 parents 694d18e + 993d438 commit 56f4f00
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/OptionSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public function withResizingType(string $rt): self
switch ($rt) {
case ResizingType::FIT:
case ResizingType::FILL:
case ResizingType::FORCE:
case ResizingType::AUTO:
return $this->set(ProcessingOption::RESIZING_TYPE, $rt);
default:
Expand Down
3 changes: 2 additions & 1 deletion src/ResizingType.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ class ResizingType
{
public const FIT = "fit",
FILL = "fill",
FORCE = "force",
AUTO = "auto";
}
}
1 change: 1 addition & 0 deletions test/OptionSetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ public function providerResizingType()
[ResizingType::AUTO, false],
[ResizingType::FILL, false],
[ResizingType::FIT, false],
[ResizingType::FORCE, false],
["invalid", true],
];
}
Expand Down

0 comments on commit 56f4f00

Please sign in to comment.