Skip to content

Commit 99a1a79

Browse files
committed
Merge branch 'develop' of github.com:Phauthentic/file-storage-image-processor into develop
2 parents e60df84 + c705b48 commit 99a1a79

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/ImageVariant.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,25 +104,29 @@ public function rotate(int $angle): self
104104

105105
/**
106106
* @param int $height Height
107+
* @param boolean $preventUpscale Prevent Upscaling
107108
* @return $this
108109
*/
109-
public function heighten(int $height): self
110+
public function heighten(int $height, bool $preventUpscale = false): self
110111
{
111112
$this->operations['heighten'] = [
112113
'height' => $height,
114+
'preventUpscale' => $preventUpscale
113115
];
114116

115117
return $this;
116118
}
117119

118120
/**
119121
* @param int $width Width
122+
* @param boolean $preventUpscale Prevent Upscaling
120123
* @return $this
121124
*/
122-
public function widen(int $width): self
125+
public function widen(int $width, bool $preventUpscale = false): self
123126
{
124127
$this->operations['widen'] = [
125128
'width' => $width,
129+
'preventUpscale' => $preventUpscale
126130
];
127131

128132
return $this;

0 commit comments

Comments
 (0)