@param ImageDto[] $altimages

@return $this
542049
public function setAltimages($altimages)
    {
        foreach ($altimages as $key => $dtoData) {
            $this->altimages[$key] = new ImageDto($dtoData);
        }
    
        return $this;
    }
478916
public static function imagePolaroid($src, $alt = '', $htmlOptions = array())
    {
        $htmlOptions['type'] = self::IMAGE_TYPE_POLAROID;
        return self::image($src, $alt, $htmlOptions);
    }
266017
public function setGroups($groups)
    {
        foreach ($groups as $key => $dtoData) {
            $this->groups[$key] = new GroupDto($dtoData);
        }
    
        return $this;
    }
83545
public function rellenar(array $datos)
    {
        foreach ($datos as $llave => $valor) {
            $this->$llave = $valor;
        }

        return $this;
    }
918211
public function less($other, array $options = []): Image
    {
        return $this->callEnum($other, 'relational', OperationRelational::LESS, $options);
    }
870536
public function images(array $sizes = [])
    {
        if (empty($sizes)) {
            return $this;
        }

        $this->images = (new ImageSize($sizes, $this->app['filter']))
            ->register();

        return $this;
    }
1333849
public function open($sourceImage) {
        $this->imgSrc = &$this->getImageSource($sourceImage);
        $this->imgDst = $this->imgSrc;
        $this->fileSrc = $sourceImage;
        $this->extension = self::getFileExt($this->fileSrc);
        return $this;
    }
602335
public function addImage($image)
    {
        if (is_array($image)) {
            $this->images = array_merge($this->images, $image);
        } elseif (is_string($image)) {
            $this->images[] = $image;
        }

        return $this;
    }
65949
public function setPrincipalImage(\Elcodi\Component\Media\Entity\Interfaces\ImageInterface $principalImage = null)
    {
        $this->principalImage = $principalImage;

        return $this;
    }
970138
public function img($src, $alt = '', $class = '', $attributes = [])
    {
        return sprintf('<img src="%s" alt="%s" class="%s" %s>',
            $this->url($src),
            $alt,
            $class,
            $this->HtmlAttributes($attributes)
        );
    }
1188996
public function setImage($image)
    {
        if ($image instanceof FeedImage) {
            $this->image = $image;
        } elseif (is_array($image)) {
            if (!empty($image)) {
                $this->image = FeedImage::createFromArray($image);
            }
        } elseif (is_null($image)) {
            $this->image = null;
        } else {
            throw new \InvalidArgumentException('Invalid image');
        }

        return $this;
    }
920825
public function setImageUrl(string $imageUrl): self
    {
        $this->checkContentType();
        $this->isValidUrl($imageUrl);
        $this->imageUrl = $imageUrl;

        return $this;
    }
162578
public function setAttachmentDefaults($defaults)
    {
        if ($this->attachmentDefaults != ($defaults = (array) $defaults)) {
            $this->attachmentDefaults = $defaults;

            $this->setAttachments($this->attachments);
        }

        return $this;
    }
1096798
public function image($url, $alt = null, $options = [])
    {
        $options['alt'] = $alt;

        return '<img src="'.$this->_generator->asset($url).'"'.self::attributes($options).'>';
    }
764817
public function images()
    {
        foreach($this->data as $post)
        {
            $post->images = Post::images($post->ID);
        }

        return $this;
    }
690824
public function addImageSet($postValues)
    {
        $imageSetObject = ImageSetFactory::createImageSetFromPostValues($postValues);

        $imageSet = $this->repository->imageSet;
        $imageSet[] = $imageSetObject;
        $this->repository->imageSet = $imageSet;

        $this->save();
    }
788888
public function addPicture(\Enhavo\Bundle\MediaBundle\Entity\File $pictures)
    {
        $this->pictures[] = $pictures;

        return $this;
    }