Skip to content

Commit

Permalink
Updated echo to return
Browse files Browse the repository at this point in the history
  • Loading branch information
calcinai committed Aug 28, 2016
1 parent 991ba8d commit 3818007
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Imagick.php
Original file line number Diff line number Diff line change
Expand Up @@ -1134,8 +1134,7 @@ public function getImageBackgroundColor() {
public function getImageBlob() {
$convert_command = $this->buildConvertCommand('-');

echo shell_exec($convert_command);

return shell_exec($convert_command);
}

/** @return array */
Expand Down Expand Up @@ -2356,7 +2355,7 @@ public function setFont($font) {
* @return bool
*/
public function setFormat($format) {
throw new Exception(sprintf('%s::%s not implemented', __CLASS__, __FUNCTION__));
return $this->setImageFormat($format);
}

/**
Expand Down Expand Up @@ -2547,7 +2546,8 @@ public function setImageFilename($filename) {
* @return bool
*/
public function setImageFormat($format) {
throw new Exception(sprintf('%s::%s not implemented', __CLASS__, __FUNCTION__));
$this->addConvertArgument(new Argument('format', $format));
return true;
}

/**
Expand Down

0 comments on commit 3818007

Please sign in to comment.