mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
keep PNG transparancy on GDBackend::rotatePixelByPixel
This commit is contained in:
parent
4f4fb62dfa
commit
b61c3ac8c3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user