A very strange phenomenon I came across while developing web application for a customer.
A Jpeg formatted picture wasn’t shown on IE8 browsers, while shown on others (Firefox 5, Chrome 12, IE9).
The browser displayed an empty placeholder with a red ‘X’ as it does when not finding an image. This led as to searching for causes such as wrong URL, communication problems etc. .
After a while, one of our IT personnel have discovered that when requesting the image, there’s some XML inside the content delivered in the response.
The content injected looked like that:
This content was injected somehow, by a graphic editor at the marketing company we’re working with, to the image file. It has been handled well at all new browsers but wasn’t
in IE8 which is still wide spread browser we have to support.
What can you do to solve this?
Simply open the same file in some basic graphic editor (Paint.Net will do, Windows Paint won’t) and re-save it. The content seen above will be removed.
In conclusion: An odd behavior by some graphic editor costs us some working hour. The solution for this is very simple and involved no coding. I hope this small post saved you the headache we’ve got.