How to find original image type using javascript?

marceagle

New Member
I am working in IE10 for a page. In that am using some images. few images were contains false image type(original image type is "png" but it has extension as "jpg"). The false images were broken in IE10(but shows in firefox). How to find the original image type using javascript avoiding the image extension and show in IE10?need code like\[code\] var imgEle = document.createElement('img'); imgEle.src = "http://stackoverflow.com/questions/15874128/imagePath/imageName."+findImageType("imagePath/imageName.jpg"); function findImageType(imagUrl) { //do stuff return imageType; }\[/code\]is it Possible? if not what are the ways to find original image type?
 
Back
Top