diff --git a/src/Bkwld/Croppa/Image.php b/src/Bkwld/Croppa/Image.php index 4b82119..957a0a4 100644 --- a/src/Bkwld/Croppa/Image.php +++ b/src/Bkwld/Croppa/Image.php @@ -67,7 +67,7 @@ public function trim($options) { * @return $this */ public function trimPixels($coords) { - list($x1, $y1, $x2, $y2) = $options; + list($x1, $y1, $x2, $y2) = $coords; $this->thumb->crop($x1, $y1, $x2 - $x1, $y2 - $y1); return $this; } @@ -165,4 +165,4 @@ public function crop($width, $height) { public function get() { return $this->thumb->getImageAsString(); } -} \ No newline at end of file +}