diff --git a/src/PHPThumb/GD.php b/src/PHPThumb/GD.php index 350bf19..a03adcc 100644 --- a/src/PHPThumb/GD.php +++ b/src/PHPThumb/GD.php @@ -935,6 +935,14 @@ public function save($fileName, $format = null) } } + //Execute any plugins + if ($this->plugins) { + foreach ($this->plugins as $plugin) { + /* @var $plugin \PHPThumb\PluginInterface */ + $plugin->execute($this); + } + } + // When the interlace option equals true or false call imageinterlace else leave it to default if ($this->options['interlace'] === true) { imageinterlace($this->oldImage, 1);