aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Photo/PhotoImagick.php
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs/Photo/PhotoImagick.php')
-rw-r--r--Zotlabs/Photo/PhotoImagick.php18
1 files changed, 0 insertions, 18 deletions
diff --git a/Zotlabs/Photo/PhotoImagick.php b/Zotlabs/Photo/PhotoImagick.php
index 373bac40f..a7026e8ca 100644
--- a/Zotlabs/Photo/PhotoImagick.php
+++ b/Zotlabs/Photo/PhotoImagick.php
@@ -169,24 +169,6 @@ class PhotoImagick extends PhotoDriver {
$this->setDimensions(); // Shouldn't really be necessary
}
- public function cropImage($max,$x,$y,$w,$h) {
- if(!$this->is_valid())
- return false;
-
- $this->image->setFirstIterator();
- do {
- $this->image->cropImage($w, $h, $x, $y);
- /*
- * We need to remove the canvas,
- * or the image is not resized to the crop:
- * http://php.net/manual/en/imagick.cropimage.php#97232
- */
- $this->image->setImagePage(0, 0, 0, 0);
- } while($this->image->nextImage());
-
- $this->doScaleImage($max, $max);
- }
-
public function cropImageRect($maxx, $maxy, $x, $y, $w, $h) {
if(! $this->is_valid())
return false;