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

Posted on 2009-05-06
Last Modified: 2013-12-13
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,
  header('Content-type: image/jpeg');
  ImageJpeg($dst, NULL, 100);

Open in new window

Question by:crm-serv
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
LVL 22

Expert Comment

by:Christopher McKay
ID: 24317459
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!



Author Comment

ID: 24317649
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?
LVL 22

Expert Comment

by:Christopher McKay
ID: 24317679
Did you follow these instructions:

Or did you browse to the location yourself and delete everything manually?
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now


Author Comment

ID: 24317990
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.

LVL 22

Expert Comment

by:Christopher McKay
ID: 24318134
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!



Accepted Solution

crm-serv earned 0 total points
ID: 24318210
I appreciate your prompt response.  Have a good day.

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question