Skip to content

Commit 6a23862

Browse files
committed
Fixed bug when no quality is sent
1 parent 657ba92 commit 6a23862

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ImageConverter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class ImageConverter
3030
* @return resource
3131
* @throws \InvalidArgumentException
3232
*/
33-
public function convert($from, $to, $quality = -1)
33+
public function convert($from, $to, $quality = null)
3434
{
3535
$image = $this->loadImage($from);
3636
if (!$image) {
@@ -174,7 +174,7 @@ private function makeDirectory($to)
174174
* @return resource
175175
* @throws \InvalidArgumentException
176176
*/
177-
function convert($from, $to, $quality = -1) {
177+
function convert($from, $to, $quality = null) {
178178
$converter = new ImageConverter();
179179
return $converter->convert($from, $to, $quality);
180180
}

0 commit comments

Comments
 (0)