I have a simple web app that creates a web page based on a user selection. The page presents text and JPEG images. The images are stored on the web server. The text and path to the desired images for a particular page is obtained from a MySQL record. The page is rendered fine in Internet Explorer.
The problem is that when the user attempts to save the JPEG images in Internet Explorer ( right click image and select Save Picture As ) the only format option available is bitmap. I want the user to be able to save the image in the JPEG format on the user's local computer.
Code for querying the database and assembling the web page is PHP. The code includes resizing the image for presentation on the page. I have included that segment of the code as a snippet.
Please advise me on how to allow the Internet Explorer user to save a JPEG on the local computer using the JPEG format.
$src = ImageCreateFromJpeg($image);
$dst = ImageCreateTrueColor($tn_width,$tn_height);
ImageCopyResized($dst, $src, 0, 0, 0, 0,
ImageJpeg($dst, NULL, 100);