RE: [SMARTY-DEV] html_image width and height

From: Date: Thu, 06 Mar 2003 21:50:04 +0000
Subject: RE: [SMARTY-DEV] html_image width and height
References: 1  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-900@lists.php.net to get a copy of this message
> How about an ALT param? :) I guess that'd be the "extra" param (it's not in the docs ;(. "link" isn't either. ). Gerard > -----Original Message----- > From: Monte Ohrt [mailto:monte@ispi.net] > Sent: Thursday, March 06, 2003 2:40 PM > To: Gerard > Cc: Smarty Dev > Subject: Re: [SMARTY-DEV] html_image width and height > > > fixed in CVS, thanks. > > Monte > > On Thu, 2003-03-06 at 15:32, Gerard wrote: > > Looks like the indexes are off by one in html_image: > > > > if(!isset($params['width'])) { > > $width = $_image_data[1]; > > } > > if(!isset($params['height'])) { > > $height = $_image_data[2]; > > } > > > > The docs state 0 is width, 1 is height, 2 is image type. I get > images with a > > height of 1 for GIF, 2 for JPEG, ... ;P > > > > Gerard > -- > Monte Ohrt <monte@ispi.net> > >

« previous php.smarty.dev (#900) next »