Re: getting the width and height of a images

From: Date: Thu, 27 Jul 2000 12:35:02 +0000
Subject: Re: getting the width and height of a images
Groups: php.general 
Request: Send a blank email to php-general+get-8540@lists.php.net to get a copy of this message
True, using height and width will speed up the page display. What some people get confused about is that using the height and width attributes to resize the image can slow the page display time down. If you have a very large image and try to resize it to a small image using the attributes, it will still take a long time to load since the entire, large, image needs to be downloaded. Jason Stechschulte jpstech@nc.edu -----Original Message----- From: Richard Heyes [mailto:php@heyes-computing.net] Sent: Thursday, July 27, 2000 8:14 AM To: Dan Cc: PHP General Subject: RE: [PHP] getting the width and height of a images > Since the width and height are not required for the image > tag, I'd omit > them. > > It slows down the browser Actually if anything it will speed up page display. Due to the fact that the browser doesn't have to re-layout the entire page when it starts to download the image. Whenever possible, width and height should always be used. -- Richard Heyes http://www.heyes-computing.net/scripts/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#8540) next »