From d577823f08a5b8afa153460cdb479c14d452dd45 Mon Sep 17 00:00:00 2001 From: Champ Camba Date: Fri, 9 Jun 2017 18:45:54 +0800 Subject: [PATCH] Fix png image upload with transparency --- core/um-files.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/um-files.php b/core/um-files.php index a1b5e025..9244e699 100644 --- a/core/um-files.php +++ b/core/um-files.php @@ -201,6 +201,8 @@ class UM_Files { } else if ($info['mime'] == 'image/png'){ $image = imagecreatefrompng( $source ); + imagealphablending( $image, false ); + imagesavealpha( $image, true ); }