Solved

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

Posted on 2009-05-06
6
597 Views
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.

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

0
Comment
Question by:crm-serv
  • 3
  • 3
6 Comments
 
LVL 22

Expert Comment

by:Bartender_1
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!

:o)

Bartender_1
0
 

Author Comment

by:crm-serv
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?
0
 
LVL 22

Expert Comment

by:Bartender_1
ID: 24317679
Did you follow these instructions:
http://support.microsoft.com/kb/260897

Or did you browse to the location yourself and delete everything manually?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:crm-serv
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.

0
 
LVL 22

Expert Comment

by:Bartender_1
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!

:o)

Bartender_1
0
 

Accepted Solution

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

920 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now