Skip to content

Commit

Permalink
rename BackgroundFilter to BackgroundFillFilter (filter name = `backg…
Browse files Browse the repository at this point in the history
…round_fill`)
  • Loading branch information
jygaulier committed Nov 25, 2024
1 parent 098fcfb commit 03eedd4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Imagine\Image\Point;
use Liip\ImagineBundle\Imagine\Filter\Loader\LoaderInterface;

class BackgroundFilterLoader implements LoaderInterface
class BackgroundFillFilterLoader implements LoaderInterface
{
public function __construct(protected ImagineInterface $imagine)
{
Expand All @@ -21,7 +21,6 @@ public function load(ImageInterface $image, array $options = [])
);
$canvas = $this->imagine->create($image->getSize(), $background);

// DO NOT REMOVE THIS LINE
// This is a workaround to avoid a bug in Imagine that causes wrong positionning
// when the image has multiple layers
$unused = $image->layers()[0];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function createFilterLoaders(TransformationContextInterface $context): ar
$context,
$this->imagine,
),
'background' => new BackgroundFilterLoader($this->imagine),
'background_fill' => new BackgroundFillFilterLoader($this->imagine),
'strip' => new StripFilterLoader(),
'scale' => new ScaleFilterLoader(),
'upscale' => new UpscaleFilterLoader(),
Expand Down

0 comments on commit 03eedd4

Please sign in to comment.