aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/IImage.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/IImage.php')
-rw-r--r--lib/public/IImage.php22
1 files changed, 21 insertions, 1 deletions
diff --git a/lib/public/IImage.php b/lib/public/IImage.php
index 5cc1187d33e..7ba08c889da 100644
--- a/lib/public/IImage.php
+++ b/lib/public/IImage.php
@@ -8,6 +8,8 @@ declare(strict_types=1);
*/
namespace OCP;
+use GdImage;
+
/**
* Class for basic image manipulation
* @since 8.1.0
@@ -79,7 +81,7 @@ interface IImage {
/**
* @return string Returns the mimetype of the data. Returns null
- * if the data is not valid.
+ * if the data is not valid.
* @since 13.0.0
*/
public function dataMimeType(): ?string;
@@ -202,4 +204,22 @@ interface IImage {
* @since 19.0.0
*/
public function resizeCopy(int $maxSize): IImage;
+
+ /**
+ * Loads an image from a string of data.
+ *
+ * @param string $str A string of image data as read from a file.
+ *
+ * @since 31.0.0
+ */
+ public function loadFromData(string $str): GdImage|false;
+
+ /**
+ * Reads the EXIF data for an image.
+ *
+ * @param string $data EXIF data
+ *
+ * @since 31.0.0
+ */
+ public function readExif(string $data): void;
}