Broken Images

Shawn J.P. West (BlackSheep) kiratoy at panix.com
Wed Mar 26 14:00:17 EST 1997


On Wed, 26 Mar 1997, Dan Johnston wrote:

> at least for bitmapped images - I thought I always see them 1:1, that is, 
> one screen pixel for one image file pixel, even though I gather the image 
> files for jpeg and gif do contain scaling information.
> 
>  -Dan Johnston
>   djohnsto at library.berkeley.edu

In the html <img src="fooimage.gif" height="pixels" width="pixels"> 

If you leave the height and width information out the browser when it
goes throught the html it first does the code then it say lets figure the
image. If you ever go to a site and you waiting to see content that is one
of the causes. When this info is inserted the browser says hey i have a
image that is 600pixels high and 300 pixels wide and lays out the page
while it's goes through the html. that is why you will see the text first
then you will see the graphics. 

The "feature" is if you have a graphic that is small and you want ti to be
scaled for a reason lets say to make a table a certain size for layout.
People will take a "spacer" graphic and enlarge it using the height and
width options. So a 1pixel x 1pixel image can be scaled  to 50pixels by 2
pixels. If you go to search.com that how they get the banner to appear in
the left of the screen just moved slightly.

The "downside" is if you have a graphic that is big in megs lets say we
have an image that is 1000pixels by 1000 pixels. there are people that
want the graphic to be 20 pixels by 20 pixels and don't have access to
software to scale it and use the command this slows the browser.
Because it first has to load the file which can be large and then it has
to scale it.

sidenote:

using the lowsrc="very small image image.gif" will have a image show up
doing the first pass through the html. If you go to my we site on panix
you will see an example of lowsrc. if you go to me web site "kiratoy" 
and select the beta link on the second page you will see an example of
what happends when you leave height and width out. Selections from the
page that loads will show you how it loads with it put in.

 

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
http://panix.com/~kiratoy                    kiratoy at panix.com
http://www.kiratoy.com                       kiratoy at 2600.com

"I question authority because it questions me"  sjpw -12.31.96



More information about the Web4lib mailing list