diff --git a/core/model/Image.php b/core/model/Image.php index f606d5d70..4ba1d7979 100755 --- a/core/model/Image.php +++ b/core/model/Image.php @@ -80,6 +80,13 @@ class Image extends File { return true; } } + + function onBeforeDelete() { + parent::onBeforeDelete(); + + // Delete the temp verions of this file in assets/_resampled + $this->deleteFormattedImages(); + } /** * Get the relative URL for this Image.