Avoid usage of Nextcloud API, use PHP function

pull/28473/head
acsfer 3 years ago committed by GitHub
parent a3c69b8310
commit 280dd851b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -641,7 +641,7 @@ class OC_Image implements \OCP\IImage {
default:
// this is mostly file created from encrypted file
$this->resource = imagecreatefromstring(file_get_contents(\OC\Files\Filesystem::getLocalPath($imagePath)));
$this->resource = imagecreatefromstring(file_get_contents($imagePath));
$iType = IMAGETYPE_PNG;
$this->logger->debug('OC_Image->loadFromFile, Default', ['app' => 'core']);
break;

Loading…
Cancel
Save