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

ScaleExactFilterLoader.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 ScaleExactFilterLoader extends FilterLoaderWrapped
17 {
18 public function load(ImageInterface $image, array $options = [])
19 {
20 if (count($options) < 2) {
21 throw new InvalidArgumentException('Missing width and/or height options');
22 }
23
24 return $this->innerLoader->load($image, ['size' => $options]);
25 }
26 }
eZ\Bundle\EzPublishCoreBundle\Imagine\Filter\Loader\FilterLoaderWrapped
Definition: FilterLoaderWrapped.php:12
eZ\Bundle\EzPublishCoreBundle\Imagine\Filter\Loader\ScaleExactFilterLoader
Filter loader for geometry/scaleexact filter.
Definition: ScaleExactFilterLoader.php:17
eZ\Bundle\EzPublishCoreBundle\Imagine\Filter\Loader\ScaleExactFilterLoader\load
load(ImageInterface $image, array $options=[])
Definition: ScaleExactFilterLoader.php:18
eZ\Bundle\EzPublishCoreBundle\Imagine\Filter\Loader
Definition: BorderFilterLoader.php:7
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.