public function toFile()
    {


        if ($this->type == "jpg")

    {
            $this->toJpg();

        } elseif ($this->type == "png") {

            $this->toPng();

        } elseif ($this->type == "gif") {

            $this->toGif();
        }

    }
public function toFile()
    {


        if ($this->type == "jpg")

    {
            $this->toJpg();

        } elseif ($this->type == "png") {

            $this->toPng();

        } elseif ($this->type == "gif") {

            $this->toGif();
        }

    }
public function toFile ( ) { if ( $ this -> type == "jpg" ) { $ this -> toJpg ( ) ; } elseif ( $ this -> type == "png" ) { $ this -> toPng ( ) ; } elseif ( $ this -> type == "gif" ) { $ this -> toGif ( ) ; } }
Saves the edited image as a file based on the original images file type
Saves the edited image as a file based on the original images file type