Reset image transforms after process to avoid unexpected effects

This commit is contained in:
Giuseppe Criscione 2024-09-21 12:10:38 +02:00
parent 352a464c31
commit 029f80b8bf

View File

@ -313,6 +313,12 @@ class Image extends File
$image = new Image($path, $this->options);
$image->uriGenerator = $this->uriGenerator;
$image->transforms = $this->transforms;
$image->handler = $this->handler;
$this->transforms = new TransformCollection();
unset($this->handler);
return $image;
}