diff --git a/libraries/joomla/image/image.php b/libraries/joomla/image/image.php index 9654d46e98adc..a17def6916895 100644 --- a/libraries/joomla/image/image.php +++ b/libraries/joomla/image/image.php @@ -733,10 +733,9 @@ public function resize($width, $height, $createNew = true, $scaleMethod = self:: $handle = imagecreatetruecolor($width, $height); - // Make image transparent, otherwise cavas outside initial image would default to black if (!$this->isTransparent()) { - $transparency = imagecolorAllocateAlpha($this->handle, 0, 0, 0, 127); + $transparency = imagecolorAllocateAlpha($this->handle, 255, 255, 255, 127); imagecolorTransparent($this->handle, $transparency); } }