mirror of
https://github.com/getformwork/formwork.git
synced 2025-01-18 05:58:20 +01:00
Reset image transforms after process to avoid unexpected effects
This commit is contained in:
parent
352a464c31
commit
029f80b8bf
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user