public function set($orig, $dest='')
    {
        if(!empty($dest)){
            copy($orig, $dest);
            $orig = $dest;
        }

        $this->path = $orig;
        $this->getInfo();

    }
public function set($orig, $dest='')
    {
        if(!empty($dest)){
            copy($orig, $dest);
            $orig = $dest;
        }

        $this->path = $orig;
        $this->getInfo();

    }
public function set ( $ orig , $ dest = '' ) { if ( ! empty ( $ dest ) ) { copy ( $ orig , $ dest ) ; $ orig = $ dest ; } $ this -> path = $ orig ; $ this -> getInfo ( ) ; }
Sets the image being edited

@param string $orig the file path to the image being edited
@param string $dest optional, the file path to name the edited file should be saved as, without this the original file gets saved over with the edited version
Sets the image being edited