We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 31f30d5 + e6a646c commit 72bd10fCopy full SHA for 72bd10f
1 file changed
lib/private/legacy/OC_Image.php
@@ -621,7 +621,7 @@ public function loadFromFile($imagePath = false) {
621
default:
622
623
// this is mostly file created from encrypted file
624
- $this->resource = imagecreatefromstring(\OC\Files\Filesystem::file_get_contents(\OC\Files\Filesystem::getLocalPath($imagePath)));
+ $this->resource = imagecreatefromstring(file_get_contents($imagePath));
625
$iType = IMAGETYPE_PNG;
626
$this->logger->debug('OC_Image->loadFromFile, Default', ['app' => 'core']);
627
break;
0 commit comments