[php]Upload, edit and download image file within single use of form -


since time i'm digging topic, doing research , not easy seems be. want achieve script loading image file client's pc, edit (add single letter in top left corner of image) , save new file on client's pc. far i've learned how create uploader , secure loading files other images, how open image file edit gd extension. have problems with: how open uploaded file, not want store file in other location /tmp (file should removed right after finishing whole operation). have no idea yet how access uploaded file i'm unable open editing gd , save file on client's device.

so far ended think not way should written, should have change make work?

<?php     //basic info uploaded file     $origfilename = $_files['userfile']['name'];     $type = $_files['userfile']['type'];     $size = $_files['userfile']['size'];     $tmpname = $_files['userfile']['tmp_name'];     $errors = $_files['userfile']['error'];     //opening uploaded file editing , store on client's device      $imagesize = array getimagesize( string $filename [, array &$imageinfo ] ); //getting image dimensions     $copyimage = bool imagecopy(int $src_w , int $src_h ); //copying image received dimensions     $exportimage = bool imagejpeg(resource $copyimage [, string $filename [, int $quality ]] ); //save copied image .jpg file ?> 

Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -