Метод | Описание | |
---|---|---|
__construct ( Contao\Image\PictureGeneratorInterface $pictureGenerator, Contao\CoreBundle\Image\ImageFactoryInterface $imageFactory, Contao\CoreBundle\Framework\ContaoFrameworkInterface $framework, boolean $bypassCache, array $imagineOptions ) | Constructor. | |
create ( $path, $size = null ) | ||
setDefaultDensities ( $densities ) |
Метод | Описание | |
---|---|---|
addImageAttributes ( Contao\Image\PictureInterface $picture, array $attributes ) : Contao\Image\PictureInterface | Adds the image attributes. | |
createConfig ( integer | array | null $size ) : array>\array |
Creates a picture configuration. | |
createConfigItem ( |
Creates a picture configuration item. |
public __construct ( Contao\Image\PictureGeneratorInterface $pictureGenerator, Contao\CoreBundle\Image\ImageFactoryInterface $imageFactory, Contao\CoreBundle\Framework\ContaoFrameworkInterface $framework, boolean $bypassCache, array $imagineOptions ) | ||
$pictureGenerator | Contao\Image\PictureGeneratorInterface | |
$imageFactory | Contao\CoreBundle\Image\ImageFactoryInterface | |
$framework | Contao\CoreBundle\Framework\ContaoFrameworkInterface | |
$bypassCache | boolean | |
$imagineOptions | array |