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

JQuery Autocomplete without using label, value, id -

c++ - Accessing inactive union member and undefined behavior? -

JAVA - what is the difference between void and boolean methods? -