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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.