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 fcb13a1fa14..badc30ab9a0 100644 --- a/lib/image.php +++ b/lib/image.php @@ -522,6 +522,11 @@ class OC_Image { if (\OC_Util::fileInfoLoaded()) { $this->mimeType = $this->fileInfo->buffer($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; |