src/Creation/CapGenerator.php
public function createResize(OwnField $field, $resize_name, ImageItem $original)
    {
        if(!$this->imageItemFactory)
        {
            throw new ImageAggrException('Для генератора заглушек не установлена фабрика элементов!');
        }

        $type = $field->getFieldType();
        $subs = $type->getSubs('original');
        $resizeType = $subs->getSub('resize');

        $resizeItem  = $this->imageItemFactory->createResize($resizeType, ['name' => $resize_name], true);

        $resizeItem->getRef('original')->setItem($original);

        return $resizeItem;
    }
public function createResize(OwnField $field, $resize_name, ImageItem $original)
    {
        if(!$this->imageItemFactory)
        {
            throw new ImageAggrException('Для генератора заглушек не установлена фабрика элементов!');
        }

        $type = $field->getFieldType();
        $subs = $type->getSubs('original');
        $resizeType = $subs->getSub('resize');

        $resizeItem  = $this->imageItemFactory->createResize($resizeType, ['name' => $resize_name], true);

        $resizeItem->getRef('original')->setItem($original);

        return $resizeItem;
    }
@param \Interpro\Core\Contracts\Taxonomy\Fields\OwnField $field
@param string $resize_name
@param \Interpro\ImageAggr\Items\ImageItem $original

@return \Interpro\ImageAggr\Items\ResizeItem