I don't think that's it's a web server thing, because he's dynamically generating the images and not using a .jpg extension. Doing it this way allows you do such things as resize the image on the fly using URL parameters. Something like:
src="/images/showImage.html?imageid=123456&size=800x600 the HTTP response headers would probably shed the most light on the problem, nudge, nudge;-) >>-----Original Message----- >>From: Gunnar Hjalmarsson [mailto:nore...@gunnar.cc] >>Sent: Thursday, July 02, 2009 1:24 PM >>To: beginners-cgi@perl.org >>Subject: Re: content type headers >> >>Hellman, Matthew wrote: >>> The answer to your problem seems to be making sure one and only one >>> content-type header is returned with the image, and that it has the >>> correct value (e.g. Content-Type: image/jpeg or whatever). >> >>Right, and it just struck me that this is probably a web server >>configuration issue. A sensibly configured server should send the >>correct content-type header out from the file extension. >> >>Please see the attached file, which is the config file for this purpose >>on my own (Apache) server. There you can see that a jpg extension >>results in content-type image/jpeg, a png extension gives image/png etc. >> >>-- >>Gunnar Hjalmarsson >>Email: http://www.gunnar.cc/cgi-bin/contact.pl -----Message Disclaimer----- This e-mail message is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended recipient, any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by reply email to conn...@principal.com and delete or destroy all copies of the original message and attachments thereto. Email sent to or from the Principal Financial Group or any of its member companies may be retained as required by law or regulation. Nothing in this message is intended to constitute an Electronic signature for purposes of the Uniform Electronic Transactions Act (UETA) or the Electronic Signatures in Global and National Commerce Act ("E-Sign") unless a specific statement to the contrary is included in this message. While this communication may be used to promote or market a transaction or an idea that is discussed in the publication, it is intended to provide general information about the subject matter covered and is provided with the understanding that The Principal is not rendering legal, accounting, or tax advice. It is not a marketed opinion and may not be used to avoid penalties under the Internal Revenue Code. You should consult with appropriate counsel or other advisors on all matters pertaining to legal, tax, or accounting obligations and requirements. -- To unsubscribe, e-mail: beginners-cgi-unsubscr...@perl.org For additional commands, e-mail: beginners-cgi-h...@perl.org http://learn.perl.org/