- while (strlen($_data) > SIZE_MAX) {
- $img2 = imagecreatetruecolor($nx, $ny);
- imagecopyresampled($img2, $img, 0, 0, 0, 0, $nx, $ny, $x, $y);
- imagejpeg($img2, $file, $comp);
- $_data = file_get_contents($file);
- $this->mimetype = 'jpeg';
+ static public function get_request($uid)
+ {
+ return parent::get_typed_request($uid,'photo');
+ }