We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 657ba92 commit 6a23862Copy full SHA for 6a23862
src/ImageConverter.php
@@ -30,7 +30,7 @@ class ImageConverter
30
* @return resource
31
* @throws \InvalidArgumentException
32
*/
33
- public function convert($from, $to, $quality = -1)
+ public function convert($from, $to, $quality = null)
34
{
35
$image = $this->loadImage($from);
36
if (!$image) {
@@ -174,7 +174,7 @@ private function makeDirectory($to)
174
175
176
177
-function convert($from, $to, $quality = -1) {
+function convert($from, $to, $quality = null) {
178
$converter = new ImageConverter();
179
return $converter->convert($from, $to, $quality);
180
}
0 commit comments