I'd like to have an image resized on the server side using PHP before download and before it is presented to the user. This cannot be done during upload since the images are constantly changing and being uploaded using FTP. I am using the following code to present the image
header('Content-Type: image/jpeg');
readfile($img . $filename . "." . $ext);
Is it possible for this to be done through PHP as I'd like to reduce the download size of the image; ideally without writing to disk (since the file is constantly accessed by users).
Thanks for your help.