l4dd13 — 2013-11-06T09:37:02-05:00 — #1
We've got a few sites where I work which use an image filter which generates and saves the cropped image without an extension.
In IE9+, the images display correctly when displayed directly on the page, however, when you click to view the image only the image doesn't display and instead fires up notepad showing the raw image data.
I've solved this issue in the past, but cannot remember how, nor where I found the help.
Do any of you know how to get around this issue?
Uploading the images again is not a viable solution as there are too many.
wwb_99 — 2013-11-06T19:41:03-05:00 — #2
Is your web server serving the extensionless images with a proper mimetype?
l4dd13 — 2013-11-08T04:36:54-05:00 — #3
How do I check this?
In Chrome the console is showing a mimetype but that could just be Chrome compensating.
l4dd13 — 2013-11-08T05:56:30-05:00 — #4
After further testing, it would appear that this isn't an IE specific issue.
Firefox is returning the images with text/plain mimetype.
wwb_99 — 2013-11-08T13:45:33-05:00 — #5
Gotcha. I would start by serving an appropriate mimetype to help browsers render the things. IE is just doing what it is told and opening notepad to display your text file.