Skip to content

Commit

Permalink
FIX: Keep ImagickBackend API consistent with Image_Backend interface …
Browse files Browse the repository at this point in the history
…and fix color formatting.
  • Loading branch information
jedateach committed Aug 19, 2014
1 parent a838e9b commit 47cc157
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions filesystem/ImagickBackend.php
Expand Up @@ -184,7 +184,7 @@ public function resizeByHeight($height) {
* @param int $height
* @return Image_Backend
*/
public function paddedResize($width, $height, $backgroundColor = "#FFFFFF00") {
public function paddedResize($width, $height, $backgroundColor = "FFFFFF") {
if(!$this->valid()) return;

$width = round($width);
Expand All @@ -197,7 +197,7 @@ public function paddedResize($width, $height, $backgroundColor = "#FFFFFF00") {
}

$new = clone $this;
$new->setBackgroundColor($backgroundColor);
$new->setBackgroundColor("#".$backgroundColor);

$destAR = $width / $height;
if ($geometry["width"] > 0 && $geometry["height"] > 0) {
Expand Down

0 comments on commit 47cc157

Please sign in to comment.