php - Manipulate image without saving it -
i want things on image uploaded user.
until now, is:
move_uploaded_file
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
Post a Comment