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);
}