473,382 Members | 1,369 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Image Sizing Issue

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
ti******@hotmail.com
Nov 18 '05 #1
1 1223
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.
--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Tim Burda" <ti******@hotmail.com> wrote in message
news:1c**************************@posting.google.c om...
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
ti******@hotmail.com

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: BWIN | last post by:
I am the owner of a very large scale member-base website and the members are having trouble re-sizing there pics to create headshots. The headshots are supposed to be 175 x 175 pixels exactly. We...
5
by: KiwiBrian | last post by:
I wish to place an image of a word of text in the middle of a sentence, but need to adjust the vertical position of the image so that it looks inline with the text. I have tried unsuccesfully to...
11
by: N. Graves | last post by:
I have checked the "Alignment and Sizing" toolbar but when I want to use in on aligning several form object the toolbar buttons stay grayed out. What am I missing. Thanks! N. Graves
13
by: Neo Geshel | last post by:
I have examined about 80+ different upload scripts on the 'net, both in VB and C#, and none seem to do what I need them to do. Perhaps someone here can point me somewhere that Google hasn't...
2
by: thehuby | last post by:
I have a background image that on all the pages of my site works fine - however on one news item the background image lays over the top of the text (if I select the text it all suddenly appears). ...
14
by: Zhang Weiwu | last post by:
Hello. I have been using word processor like OOO for nearly 10 years and such layout is very usual to me: gopher://sdf.lonestar.org/I/users/weiwu/ooo_wrap_correctly.png but I found it's very...
6
by: RoseW | last post by:
This is a collection of images with its own style sheet to create the hover over the thumbnail and the larger image appears. http://www4.webng.com/chesleyhs/images/planting/Planting.html Narrow...
6
by: Stephan Bourdon | last post by:
Hi, Your opinion please on the following subject: Is it acceptable to set the width and height of an image in ems or percents in CSS? The advantage for me is that images will scale up or down...
2
by: =?Utf-8?B?SmVmZlAtPg==?= | last post by:
I want to retrieve an image file (TIF) convert it to a bmp file and enable sizing. I know how to do the converting & sizing part, and store any atributes to file location in the webconfig, what...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.