PHP resize HTTP_RAW_POST_DATA to save image -
how http_raw_post_data , can resize create smaller image. image saved disk have classes this, more http_raw_post_data not know how do
if ( isset ( $globals["http_raw_post_data"] )) { //the image file name $filename = $_get['nome'].".jpg"; // binary stream $im = $globals["http_raw_post_data"]; //write $fp = fopen('saves/print/'.$filename, 'wb'); fwrite($fp, $im); fclose($fp); }
if image coming multipart html form, don't think can use raw post data @ all...i empty if recall attempts read previously.
instead, should use move_uploaded_file
then, resize image via imagemagick or gd:
Comments
Post a Comment