Метод | Описание | |
---|---|---|
__construct ( Contao\Image\ResizerInterface $resizer, Imagine\Image\ImagineInterface $imagine, Imagine\Image\ImagineInterface $imagineSvg, Symfony\Component\Filesystem\Filesystem $filesystem, Contao\CoreBundle\Framework\ContaoFrameworkInterface $framework, boolean $bypassCache, array $imagineOptions, array $validExtensions ) | Constructor. | |
create ( $path, $size = null, $targetPath = null ) | ||
getImportantPartFromLegacyMode ( Contao\Image\ImageInterface $image, $mode ) |
Метод | Описание | |
---|---|---|
createConfig ( integer | array | null $size, Contao\Image\ImageInterface $image ) : array | Creates a resize configuration object. | |
createImportantPart ( string $path ) : Contao\Image\ImportantPart | null | Fetches the important part from the database. |
public __construct ( Contao\Image\ResizerInterface $resizer, Imagine\Image\ImagineInterface $imagine, Imagine\Image\ImagineInterface $imagineSvg, Symfony\Component\Filesystem\Filesystem $filesystem, Contao\CoreBundle\Framework\ContaoFrameworkInterface $framework, boolean $bypassCache, array $imagineOptions, array $validExtensions ) | ||
$resizer | Contao\Image\ResizerInterface | |
$imagine | Imagine\Image\ImagineInterface | |
$imagineSvg | Imagine\Image\ImagineInterface | |
$filesystem | Symfony\Component\Filesystem\Filesystem | |
$framework | Contao\CoreBundle\Framework\ContaoFrameworkInterface | |
$bypassCache | boolean | |
$imagineOptions | array | |
$validExtensions | array |
public getImportantPartFromLegacyMode ( Contao\Image\ImageInterface $image, $mode ) | ||
$image | Contao\Image\ImageInterface |