Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2022-06-02 03:37:36 +0300
committerChristopher Ng <chrng8@gmail.com>2022-06-02 03:37:36 +0300
commit57c66bf7cb772d5d6d7a17f10cd90adf48884b2d (patch)
tree1043929d764925819b9e4befe499a9ea3607ae7e /core/Controller
parent4e5ed32025398e006f40e819428270d209994e03 (diff)
Use Image class from public APIfix/use-image-from-ocp
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'core/Controller')
-rw-r--r--core/Controller/AvatarController.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/Controller/AvatarController.php b/core/Controller/AvatarController.php
index e75b3493185..2ef219af498 100644
--- a/core/Controller/AvatarController.php
+++ b/core/Controller/AvatarController.php
@@ -201,7 +201,7 @@ class AvatarController extends Controller {
}
try {
- $image = new \OC_Image();
+ $image = new \OCP\Image();
$image->loadFromData($content);
$image->readExif($content);
$image->fixOrientation();
@@ -260,7 +260,7 @@ class AvatarController extends Controller {
Http::STATUS_NOT_FOUND);
}
- $image = new \OC_Image();
+ $image = new \OCP\Image();
$image->loadFromData($tmpAvatar);
$resp = new DataDisplayResponse(
@@ -296,7 +296,7 @@ class AvatarController extends Controller {
Http::STATUS_BAD_REQUEST);
}
- $image = new \OC_Image();
+ $image = new \OCP\Image();
$image->loadFromData($tmpAvatar);
$image->crop($crop['x'], $crop['y'], (int)round($crop['w']), (int)round($crop['h']));
try {