diff --git a/system/src/Grav/Common/Page/Medium/ImageFile.php b/system/src/Grav/Common/Page/Medium/ImageFile.php index bb9ce59aa..e75f6d979 100644 --- a/system/src/Grav/Common/Page/Medium/ImageFile.php +++ b/system/src/Grav/Common/Page/Medium/ImageFile.php @@ -9,6 +9,14 @@ class ImageFile extends \Gregwar\Image\Image { use GravTrait; + /** + * Clear previously applied operations + */ + public function clearOperations() + { + $this->operations = []; + } + /** * This is the same as the Gregwar Image class except this one fires a Grav Event on creation of new cached file * diff --git a/system/src/Grav/Common/Page/Medium/ImageMedium.php b/system/src/Grav/Common/Page/Medium/ImageMedium.php index c38d8e874..65fba3006 100644 --- a/system/src/Grav/Common/Page/Medium/ImageMedium.php +++ b/system/src/Grav/Common/Page/Medium/ImageMedium.php @@ -260,6 +260,7 @@ class ImageMedium extends Medium if ($this->image) { $this->image(); + $this->image->clearOperations(); // Clear previously applied operations $this->filter(); }