From 47cc157d976a0bf1fae62ef491cad9fe3e1e2c99 Mon Sep 17 00:00:00 2001 From: Jeremy Shipman Date: Mon, 28 Jul 2014 11:57:32 +1200 Subject: [PATCH] FIX: Keep ImagickBackend API consistent with Image_Backend interface and fix color formatting. --- filesystem/ImagickBackend.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/filesystem/ImagickBackend.php b/filesystem/ImagickBackend.php index 000d366ec..c5f356452 100644 --- a/filesystem/ImagickBackend.php +++ b/filesystem/ImagickBackend.php @@ -184,7 +184,7 @@ class ImagickBackend extends Imagick implements Image_Backend { * @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); @@ -197,7 +197,7 @@ class ImagickBackend extends Imagick implements Image_Backend { } $new = clone $this; - $new->setBackgroundColor($backgroundColor); + $new->setBackgroundColor("#".$backgroundColor); $destAR = $width / $height; if ($geometry["width"] > 0 && $geometry["height"] > 0) {