| 104 | | // Set the status to the save return value, saving with the quality reques |
| 105 | | $status = isset($quality) ? $save($this->tmp_image, $dir.$file, $quality) : $save($this->tmp_image, $dir.$file); |
| | 104 | if ($output == FALSE){ |
| | 105 | // Set the status to the save return value, saving with the quality requested |
| | 106 | $status = isset($quality) ? $save($this->tmp_image, $dir.$file, $quality) : $save($this->tmp_image, $dir.$file); |
| | 107 | }else{ |
| | 108 | switch ($save){ |
| | 109 | case 'imagejpeg': |
| | 110 | header ("Content-Type: image/jpeg"); |
| | 111 | break; |
| | 112 | case 'imagegif': |
| | 113 | header ("Content-Type: image/gif"); |
| | 114 | break; |
| | 115 | case 'imagepng': |
| | 116 | header ("Content-Type: image/png"); |
| | 117 | break; |
| | 118 | } |
| | 119 | $status = isset($quality) ? $save($this->tmp_image, null, $quality) : $save($this->tmp_image); |
| | 120 | } |