Server : RH Linux 7.2
I am using the latest version of Image Magick to convert images that are uploaded to the system to the desired format that the user chooses, then displaying the image on a web page.
I am using the passthru command to pipe the image back to the browser but I am having a problem with headers in that when the user right clicks on the image and looks at the properties, there is no file size or image type or image name available.
How can I send the image size, type and filename back to the browser?
The image size is tough, because, it is being resized and piped back to the browser, so I am not sure if it can be accomplished. But I the minimum, a file name and type would be nice.
What headers to user for this?