Bkwld\Croppa\Image::trimPixels PHP Method

trimPixels() public method

Trim the source before applying the crop with as offset pixels
public trimPixels ( array $coords )
$coords array Cropping instructions as pixels
    public function trimPixels($coords)
    {
        list($x1, $y1, $x2, $y2) = $coords;
        $this->thumb->crop($x1, $y1, $x2 - $x1, $y2 - $y1);
        return $this;
    }