aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-03-16 12:57:15 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2015-03-16 12:57:15 +0100
commit8f06353882877c948e15e0340615cc7d25c44b83 (patch)
tree0f5431dce1019f469fd99b90fadb9e2b52c52857
parent3052b9571edf8b8bc223c5e5df9c392d152dd994 (diff)
downloadnextcloud-server-8f06353882877c948e15e0340615cc7d25c44b83.tar.gz
nextcloud-server-8f06353882877c948e15e0340615cc7d25c44b83.zip
Remove load*() methods from public interface
We shall add a factory for that in the future
-rw-r--r--lib/public/iimage.php49
1 files changed, 1 insertions, 48 deletions
diff --git a/lib/public/iimage.php b/lib/public/iimage.php
index 6ba7a501eb8..01d8e101330 100644
--- a/lib/public/iimage.php
+++ b/lib/public/iimage.php
@@ -9,14 +9,13 @@
* later.
* See the COPYING-README file.
*/
-namespace OCP;
+namespace OCP;
/**
* Class for basic image manipulation
*/
interface IImage {
-
/**
* Determine whether the object contains an image resource.
*
@@ -103,47 +102,6 @@ interface IImage {
public function fixOrientation();
/**
- * Loads an image from a local file, a base64 encoded string or a resource created by an imagecreate* function.
- *
- * @param resource|string $imageRef The path to a local file, a base64 encoded string or a resource created by an imagecreate* function or a file resource (file handle ).
- * @return resource|false An image resource or false on error
- */
- public function load($imageRef);
-
- /**
- * Loads an image from an open file handle.
- * It is the responsibility of the caller to position the pointer at the correct place and to close the handle again.
- *
- * @param resource $handle
- * @return resource|false An image resource or false on error
- */
- public function loadFromFileHandle($handle);
-
- /**
- * Loads an image from a local file.
- *
- * @param bool|string $imagePath The path to a local file.
- * @return bool|resource An image resource or false on error
- */
- public function loadFromFile($imagePath = false);
-
- /**
- * Loads an image from a string of data.
- *
- * @param string $str A string of image data as read from a file.
- * @return bool|resource An image resource or false on error
- */
- public function loadFromData($str);
-
- /**
- * Loads an image from a base64 encoded string.
- *
- * @param string $str A string base64 encoded string of image data.
- * @return bool|resource An image resource or false on error
- */
- public function loadFromBase64($str);
-
- /**
* Resizes the image preserving ratio.
*
* @param integer $maxSize The maximum size of either the width or height.
@@ -185,9 +143,4 @@ interface IImage {
* @return bool
*/
public function fitIn($maxWidth, $maxHeight);
-
- /**
- * Destroys the current image and resets the object
- */
- public function destroy();
}