Question

What image file types does WebMatrix's WebImage Helper support, when using WebImage.GetImageFromRequest();?

I have looked here: http://msdn.microsoft.com/en-us/library/system.web.helpers.webimage.getimagefromrequest(v=vs.111).aspx but it didn't really provide any useful information (other than that you can request by file name, which I already knew).

I know that the following file types are accepted: ".jpg", ".png", ".bmp", & ".gif"

I know that the following file types are not supported: ".ico", any non-image related file extension.

Are there any other supported or unsupported image file types that are not listed here?

Was it helpful?

Solution

The WebImage helper will attempt to return an image from any file that has an image MIME type.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top