TippingCanoe\Imager\Processing\Crop::process PHP Метод

process() публичный Метод

public process ( File $file, Image $image, array $config = null )
$file Symfony\Component\HttpFoundation\File\File
$image TippingCanoe\Imager\Model\Image
$config array
    public function process(File $file, Image $image, array $config = null)
    {
        $imageData = Intervention::make($file->getRealPath());
        // Sections override origin data.
        if ($this->section) {
            // ToDo: Add parameter to calculate crops by section.
            return;
        } else {
            $imageData->crop($this->width, $this->height, $this->originTop, $this->originLeft);
        }
        $imageData->save(null, 100);
    }