Question

I dont know whether it is possible to view tga image files on asp.net?

Tga image files are not known image files for webpages, I think.

But there might be a control to view tag image files for asp.net?

Thanks in advance.

Was it helpful?

Solution

As you already know browsers do not support TGA images. One alternative might be plugins such as flash, silverlight, ... which I believe do support TGA images.

If plugins are not an option, you will need to convert the TGA image to a format browsers can handle, e.g. jpg. You could use an HttpHandler for this.

This article shows the use of httphandlers to generate thumbnails on the fly. You can use this same approach and use a library such as ImageMagick to do the conversion and return the image in jpg format on the fly. Here you find a codeproject article explaining how to use ImageMagick within an asp.net website.

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