public function getInfo()
    {

        $file_info = @getimagesize($this->path);

        //define the original width of the image
        $this->width['orig'] = $file_info['0'];

        //define the original height of the image
        $this->height['orig'] = $file_info['1'];

        //image type //1 = GIF, 2 = JPG, 3 = PNG, 4 = SWF, 5 = PSD, 6 = BMP, 7 = TIFF(intel byte order), 8 = TIFF(motorola byte order), 9 = JPC, 10 = JP2, 11 = JPX, 12 = JB2, 13 = SWC, 14 = IFF, 15 = WBMP, 16 = XBM

        switch ($file_info[2])

    {
            case "1":
                $this->type = "gif";
            break;

            case "2":
                $this->type = "jpg";
            break;

            case "3":
                $this->type = "png";
            break;
        }
        //////////////////////////
        $this->original = imagecreatefromstring(file_get_contents($this->path));

    }