Stuart McLachlan
stuart at lexacorp.com.pg
Tue Jun 3 21:09:53 CDT 2003
On 3 Jun 2003 at 21:51, John Colby wrote: > I am trying to work with photos on a web site. I have created a flash photo > album with a bunch of thumbnails. When you click on any thumbnail, the > photo is loaded into the browser. Because of the resolution of my camera > (apparently), the picture is huge, with most of the picture off of the page. > Is there any way short of saving the file back out as (perhaps) a 640 x 480 > file to cause the photo to load with the whole thing viewable on the screen. > > I am trying to do this on my web site, to display photos of my son I have > taken with my digital camera. It seems that one could use an image object, > and load the picture into that image object (control) on a web page. I am > using Dreamweaver. > > You can see what I am talking about by visiting my site and clicking the > bottom button - "Meet my son". > No way am I going to try it if you have photos that size on the site :-) You *could* make it viewable on screen by setting the properties of the img like this: <img src="images/myphoto.jpg" width="640" height="480"> But that would be VERY rude to the people using the site who would suffer from long slow downloads and waste a h*ll of a lot of bandwidth since they would still be downloading the huge files. The simple answer is that web graphics should be optimized for web view before you put them on the web site. There is no point on downloading a 500KB file at 1800 x 1200 or whatever and squeezing it into a 600 x 400 frame when you could just download a 50KB 600 x 400 file in 1/10th of the time. In this case, grab a copy of Irfanview and resize/resample the pictures down to the size you want them to be with a jpg compression of about about 70%. The pictures will look great on screen but will be quick to load and won't use a lot of bandwidth/web server storage space. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support.