diff --git a/palette.php b/palette.php index 93b006d..664182b 100644 --- a/palette.php +++ b/palette.php @@ -82,6 +82,17 @@ class Palette } } + public function run() + { + if (empty($this->destination)) { + throw new Exception("No destination provided, can't save.") + } + + $this->isImage(); + $this->getPalette(); + $this->save(); + } + /** * getPalette * Returns colors used in an image specified in $filename