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

        foreach($resizes as $resize_name => $resizeSetting)
        {
            $item_attrs = $this->getNamedAttrs($resize_name, $attrs);

            $item_attrs['link'] = $this->phAgent->getResizePh($resizeSetting);

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

            //Все будет квадратным
            if(!$width)
            {
                $width = $height;
            }
            if(!$height)
            {
                $height = $width;
            }

            $item_attrs['width'] = $width;
            $item_attrs['height'] = $height;

            $this->dbAgent->resizeToDb($aRef, $imageSetting, $resizeSetting, $item_attrs, $init);
        }
    }
protected function makePhImageResizes(ARef $aRef, ImageSettingInterface $imageSetting, $attrs = [], $init = false)
    {
        $resizes = $imageSetting->getResizes();

        foreach($resizes as $resize_name => $resizeSetting)
        {
            $item_attrs = $this->getNamedAttrs($resize_name, $attrs);

            $item_attrs['link'] = $this->phAgent->getResizePh($resizeSetting);

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

            //Все будет квадратным
            if(!$width)
            {
                $width = $height;
            }
            if(!$height)
            {
                $height = $width;
            }

            $item_attrs['width'] = $width;
            $item_attrs['height'] = $height;

            $this->dbAgent->resizeToDb($aRef, $imageSetting, $resizeSetting, $item_attrs, $init);
        }
    }
@param ImageSettingInterface $imageSetting
@param int $owner_id
@param array $attrs
@param bool $init

@return void