src/Operation/Operation.php
protected function makePhImageCrops(ARef $aRef, ImageSettingInterface $imageSetting, $attrs = [], $init = false)
    {
        $crops = $imageSetting->getCrops();

        foreach($crops as $crop_name => $cropSetting)
        {
            $item_attrs = $this->getNamedAttrs($crop_name, $attrs);

            $item_attrs['link'] = $this->phAgent->getCropPh($cropSetting);

            $width = $cropSetting->getWidth();
            $height = $cropSetting->getHeight();

            $item_attrs['width'] = $width;
            $item_attrs['height'] = $height;
            $item_attrs['x'] = 0;
            $item_attrs['y'] = 0;

            $this->dbAgent->cropToDb($aRef, $imageSetting, $cropSetting, $item_attrs, $init);
        }
    }
protected function makePhImageCrops(ARef $aRef, ImageSettingInterface $imageSetting, $attrs = [], $init = false)
    {
        $crops = $imageSetting->getCrops();

        foreach($crops as $crop_name => $cropSetting)
        {
            $item_attrs = $this->getNamedAttrs($crop_name, $attrs);

            $item_attrs['link'] = $this->phAgent->getCropPh($cropSetting);

            $width = $cropSetting->getWidth();
            $height = $cropSetting->getHeight();

            $item_attrs['width'] = $width;
            $item_attrs['height'] = $height;
            $item_attrs['x'] = 0;
            $item_attrs['y'] = 0;

            $this->dbAgent->cropToDb($aRef, $imageSetting, $cropSetting, $item_attrs, $init);
        }
    }
@param \Interpro\Core\Contracts\Ref\ARef
@param \Interpro\ImageAggr\Contracts\Settings\ImageSetting $imageSetting
@param array $attrs
@param bool $init

@return void