mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
Fix png image upload with transparency
This commit is contained in:
@@ -201,6 +201,8 @@ class UM_Files {
|
|||||||
} else if ($info['mime'] == 'image/png'){
|
} else if ($info['mime'] == 'image/png'){
|
||||||
|
|
||||||
$image = imagecreatefrompng( $source );
|
$image = imagecreatefrompng( $source );
|
||||||
|
imagealphablending( $image, false );
|
||||||
|
imagesavealpha( $image, true );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user