Images TIFF in .aspx Web page

Images TIFF in .aspx Web page

am 01.10.2007 18:35:02 von GuillermoJimenez

Hi....

Please help me with this case. I need to show an image .TIFF in a .aspx web
page. The web site is developer on Visual Studio 2005. The image control no
support this image format, that control i can use to show this format???

Thanks.

Re: Images TIFF in .aspx Web page

am 01.10.2007 20:02:45 von reb01501

Guillermo Jimenez wrote:
> Hi....
>
> Please help me with this case. I need to show an image .TIFF in a
> .aspx web page. The web site is developer on Visual Studio 2005. The
> image control no support this image format, that control i can use to
> show this format???
>
There was no way for you to know it (except maybe by browsing through
some of the previous questions before posting yours - always a
recommended practice), but this is a classic asp newsgroup. ASP.Net is
a different technology from classic ASP. While you may be lucky enough
to find a dotnet-savvy person here who can answer your question, you
can eliminate the luck factor by posting your question to a newsgroup
where the dotnet-savvy people hang out. I suggest
microsoft.public.dotnet.framework.aspnet.
There are also forums at www.asp.net where you can find a lot of people
to help you.

I have no experience with TIFFs so I cannot answer this. I suspect a
standard html element might work but I won't guarantee it.
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

Re: Images TIFF in .aspx Web page

am 02.10.2007 16:27:09 von Adrienne Boswell

Gazing into my crystal ball I observed
=?Utf-8?B?R3VpbGxlcm1vIEppbWVuZXo=?=
writing in
news:FE032C2A-47EE-49CD-9279-70FE73FE70C3@microsoft.com:

> Hi....
>
> Please help me with this case. I need to show an image .TIFF in a
> .aspx web page. The web site is developer on Visual Studio 2005. The
> image control no support this image format, that control i can use to
> show this format???
>
> Thanks.

Browsers can only show gif, jpg and png (every once in a while, an odd
one will show a bmp). You would have to convert the TIFF to one of
those formats. I don't know if there if that is something that .net can
do, but I doubt it.

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Re: Images TIFF in .aspx Web page

am 03.10.2007 18:21:34 von Anthony Jones

"Adrienne Boswell" wrote in message
news:Xns99BD4BC6FD6C9arbpenyahoocom@69.28.186.121...
> Gazing into my crystal ball I observed
> =?Utf-8?B?R3VpbGxlcm1vIEppbWVuZXo=?=
> writing in
> news:FE032C2A-47EE-49CD-9279-70FE73FE70C3@microsoft.com:
>
> > Hi....
> >
> > Please help me with this case. I need to show an image .TIFF in a
> > .aspx web page. The web site is developer on Visual Studio 2005. The
> > image control no support this image format, that control i can use to
> > show this format???
> >
> > Thanks.
>
> Browsers can only show gif, jpg and png (every once in a while, an odd
> one will show a bmp). You would have to convert the TIFF to one of
> those formats. I don't know if there if that is something that .net can
> do, but I doubt it.
>

System.Drawing.Bitmap class can load a TIFF. It's save method can take an
image format parameter to specify the desired output encoding. So its
possible to simply save a JPEG or GIF directly to the Response.OutputStream.

Unfortunately both JPEG and GIF are lossy so PNG is best used if fidelity is
to be maintained. A problem with PNG is that for some reason can't be sent
directly to a stream. In which case a PNG file needs to be generated from
the Bitmap save method then the PNG file sent to the client.

--
Anthony Jones - MVP ASP/ASP.NET