uawdijnntqw1x1x1
IP : 216.73.216.107
Hostname : toronto-dev2
Kernel : Linux toronto-dev2 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
srv
/
users
/
craft4
/
apps
/
craft4-newsite-space
/
vendor
/
pixelandtonic
/
imagine
/
src
/
Filter
/
Basic
/
Crop.php
/
/
<?php /* * This file is part of the Imagine package. * * (c) Bulat Shakirzyanov <mallluhuct@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Imagine\Filter\Basic; use Imagine\Filter\FilterInterface; use Imagine\Image\BoxInterface; use Imagine\Image\ImageInterface; use Imagine\Image\PointInterface; /** * A crop filter. */ class Crop implements FilterInterface { /** * @var \Imagine\Image\PointInterface */ private $start; /** * @var \Imagine\Image\BoxInterface */ private $size; /** * Constructs a Crop filter with given x, y, coordinates and crop width and height values. * * @param \Imagine\Image\PointInterface $start * @param \Imagine\Image\BoxInterface $size */ public function __construct(PointInterface $start, BoxInterface $size) { $this->start = $start; $this->size = $size; } /** * {@inheritdoc} * * @see \Imagine\Filter\FilterInterface::apply() */ public function apply(ImageInterface $image) { return $image->crop($this->start, $this->size); } }
/srv/users/craft4/apps/craft4-newsite-space/vendor/pixelandtonic/imagine/src/Filter/Basic/Crop.php