Exponential 5.x Kernel 7.5.40 Exponential New Stack (Symfony-based) Kernel — PHP Class Reference

ScaleWidthFilterLoader.php
Go to the documentation of this file.
1 <?php
2
7 namespace eZ\Bundle\EzPublishCoreBundle\Imagine\Filter\Loader;
8
9 use Imagine\Image\ImageInterface;
10 use Imagine\Exception\InvalidArgumentException;
11
16 class ScaleWidthFilterLoader extends FilterLoaderWrapped
17 {
18 public function load(ImageInterface $image, array $options = [])
19 {
20 if (empty($options)) {
21 throw new InvalidArgumentException('Missing width option');
22 }
23
24 return $this->innerLoader->load($image, ['widen' => $options[0]]);
25 }
26 }
eZ\Bundle\EzPublishCoreBundle\Imagine\Filter\Loader\FilterLoaderWrapped
Definition: FilterLoaderWrapped.php:12
eZ\Bundle\EzPublishCoreBundle\Imagine\Filter\Loader\ScaleWidthFilterLoader
Filter loader for geometry/scalewidth filter.
Definition: ScaleWidthFilterLoader.php:17
eZ\Bundle\EzPublishCoreBundle\Imagine\Filter\Loader\ScaleWidthFilterLoader\load
load(ImageInterface $image, array $options=[])
Definition: ScaleWidthFilterLoader.php:18
eZ\Bundle\EzPublishCoreBundle\Imagine\Filter\Loader
Definition: BorderFilterLoader.php:7
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.