diff --git a/src/PHPZxing/PHPZxingDecoder.php b/src/PHPZxing/PHPZxingDecoder.php index a5807bc..da5f50e 100644 --- a/src/PHPZxing/PHPZxingDecoder.php +++ b/src/PHPZxing/PHPZxingDecoder.php @@ -121,7 +121,7 @@ private function prepareImageArray() { } if($this->crop != false) { - $command = $command . "--crop=" . $this->crop . $this->SPACE; + $command = $command . "--crop " . $this->crop . $this->SPACE; } if ($this->possible_formats != false) { @@ -151,7 +151,7 @@ private function prepareSingleImage() { } if($this->crop != false) { - $command = $command . "--crop=" . $this->crop . $this->SPACE; + $command = $command . "--crop " . $this->crop . $this->SPACE; } if ($this->possible_formats != false) { diff --git a/src/examples/example.php b/src/examples/example.php index 1429350..a0dba0d 100644 --- a/src/examples/example.php +++ b/src/examples/example.php @@ -67,7 +67,7 @@ // Bar Code Options $config = array( 'try_harder' => true, - 'crop' => '100,200,300,300', + 'crop' => '100 200 300 300', ); $decoder = new PHPZxingDecoder($config); $decodedArray = $decoder->decode('../images');