Fix: black background in uploaded images

pull/2476/head
Nosolored 8 years ago
parent 4b5dc3197e
commit 0d4698c4d8
  1. 2
      main/inc/lib/image.lib.php

@ -519,6 +519,8 @@ class GDWrapper extends ImageWrapper
break;
case 'png':
$src = @imagecreatefrompng($this->path);
@imagealphablending($dest, false);
@imagesavealpha($dest, true);
@imagecopy($dest, $src, 0, 0, $x, $y, $src_width, $src_height);
@imagepng($dest, $this->path);
break;

Loading…
Cancel
Save