diff --git a/filesystem/GD.php b/filesystem/GD.php index 7cd4c3aad..fe613d533 100644 --- a/filesystem/GD.php +++ b/filesystem/GD.php @@ -321,6 +321,7 @@ class GDBackend extends Object implements Image_Backend { } $rotate=imagecreatetruecolor($destWidth,$destHeight); imagealphablending($rotate, false); + imagesavealpha($rotate, true); // to maintain PNG transparency for ($x = 0; $x < ($sourceWidth); $x++) { for ($y = 0; $y < ($sourceHeight); $y++) { $color = imagecolorat($this->gd, $x, $y);