Link to home
Start Free TrialLog in
Avatar of crm-serv
crm-serv

asked on

Can't save to JPEG format from web page in Internet Explorer

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.

Thanks
$src = ImageCreateFromJpeg($image);
  $dst = ImageCreateTrueColor($tn_width,$tn_height);
  ImageCopyResized($dst, $src, 0, 0, 0, 0,
      $tn_width,$tn_height,$width,$height);
  header('Content-type: image/jpeg');
  ImageJpeg($dst, NULL, 100);
  ImageDestroy($src);
  ImageDestroy($dst);

Open in new window

Avatar of Bartender_1
Bartender_1
Flag of Canada image

This is typical of an Internet Explorer cache that has too many temp files.

Have you tried clearing out all the temp files and then reopening the page and seeing if you can save as jpg?

Hope this helps!

:o)

Bartender_1
Avatar of crm-serv
crm-serv

ASKER

I deleted temp files in the profile ( \temp and \Temporary Internet Files ) for user having the problem.

Still having the same problem.  Are there other locations that need to be cleared?
Did you follow these instructions:
http://support.microsoft.com/kb/260897

Or did you browse to the location yourself and delete everything manually?
I deleted manually but have now redone it using the procedure you cited.  Still have same problem.

Let me add that when I try to save images from other web pages I have both the bitmap and JPEG options available in the Save dialog.  It would seem that I may have something in the PHP setup that is causing the problem.

Ah, I thought this was a global IE problem. sorry, my knowledge of PHP is nil... I'll have to leave you waiting for someone else.

Hope you get some assistance soon!

:o)

Bartender_1
ASKER CERTIFIED SOLUTION
Avatar of crm-serv
crm-serv

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial