php - Manipulate image without saving it -


i want things on image uploaded user.

until now, is:

  1. move_uploaded_file
  2. imagecreatefrompng

how can manipulate without saving it?

when file uploaded, has stored somewhere in server's /tmp/ folder. load image there using $_files['name']['tmp_name'].

for example:

$image = imagecreatefrompng($_files['blarg']['tmp_name']); 

will load uploaded file (called blarg) it's temporary storage place under /tmp/php-12bja. don't need call move_uploaded_file(), , image doesn't need saved disk.


Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -