Image Sizing Issue

T

Tim Burda

I am having some problems with getting an .gif file to display
properly on an ASPX page. The image appears grainy and distorted. I
have tried implementing the image (stored in several formats) using
the img tag as pure HTML and adding the image to an ImageButton
control. In both cases, I have supplied the appropriate width and
height information for the .gif file. In neither case, does the image
seem to appear correctly --- the output seems grainy and blocked.

What is really interesting about this problem is that when I display
the image in the .NET UserControl (.ascx) in the .NET IDE. The image
display correctly and very crisply. If add the control to .aspx page
and display it in a regular browser, the grainy-ness returns.

Anyone ever seen this before.

Thanks -

Tim Burda
(e-mail address removed)
 
C

Curt_C [MVP]

only when sizing?
How about not resizing in the browser? Just re-create or re-size it in your
paint app, then place it on the page. Dont' use the IMG tag to resize it. If
you resize you run the risk of the image getting ugly.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top