diff options
Diffstat (limited to 'lib/image.php')
-rw-r--r-- | lib/image.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/image.php b/lib/image.php index 4bc38e20e56..840b744ad72 100644 --- a/lib/image.php +++ b/lib/image.php @@ -496,6 +496,11 @@ class OC_Image { return false; } $this->resource = @imagecreatefromstring($str); + if(is_resource($this->resource)) { + imagealphablending($this->resource, false); + imagesavealpha($this->resource, true); + } + if(!$this->resource) { OC_Log::write('core', 'OC_Image->loadFromData, couldn\'t load', OC_Log::DEBUG); return false; |