Actually if i now want to check to see if the image size is what i need...if not resize to specific width/height...how would i do this?
I remember there is a php function to get filesize:
list($width, $height, $type, $attr) = getimagesize($img);
this will give me the width and height, so i can do conditional logic to see if i need to resize...
so to resize...how can i make this work with my stored $buffer (found this)?
$src = imagecreatefromjpeg($buffer);
$filename = "images/". $_FILES['uploadfile']['name'];