1888software - 8:36 pm on Jan 13, 2012 (gmt 0)
eelixduppy's idea is an excellent one. The W3C states:
"There is no limit in the Web specifications to the graphical formats that can be used on the Web. You just need a MIME type so that the format is labelled correctly for transfer across the Web, and so that a suitable viewer (if one exists) can be located at the other end.
In practice, certain formats are more widely understood than others; certain formats are more suited to one type of graphical data than another; so you should make an informed choice about what format to use."
The 3 (arguably) most prevalent and browser supported image formats do not include .bmp and do include .jpg, .png and perhaps .gif
This is code I've used for years it includes a few other application supported formats:
I observe that the W3C is also big on svg as per the above link.