Re: Package(s) proposal(s): HTML_Image and HTML_Link.

From: Date: Sun, 03 Aug 2003 18:44:03 +0000
Subject: Re: Package(s) proposal(s): HTML_Image and HTML_Link.
References: 1 2 3 4  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-19195@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Christian Stocker, el domingo 3 de agosto a las 18:47 me escribiste: > >>I think, you should include some more features, I could think at least > >>of these: > >>- The class should be able to get the image size and add it too the > >>attributes. > > > > > >I thought that, but it has no sense in doing that. The image has it own > >size. Seting the size is only useful when you want a different size. > > Not true. You should always specify width and height. With this > information, the browser can already render the correctly even before he > loaded the picture and know it size.. Furthermore, if you turned off the > picture loading, the width and height attributes are even more useful ;) Well, if you base your design on the size of images... I can add this feature, but I don't think it should be done automaticly, maybe adding a method setSize($x = 0, $y = 0) that when it's called with no parameters (x=0 and y=0) uses the image size. It's that ok? - -- LUCA - Leandro Lucarella - Usando Debian GNU/Linux Sid - GNU Generation - ------------------------------------------------------------------------ E-Mail / JID: luca@lugmen.org.ar GPG Fingerprint: D9E1 4545 0F4B 7928 E82C 375D 4B02 0FE0 B08B 4FB2 GPG Key: gpg --keyserver pks.lugli.org.ar --recv-keys B08B4FB2 - ------------------------------------------------------------------------ He llegado a la conclusión, despues de muchos años de tristes experiencias, de que uno no puede llegar a ninguna conclusión. -- Vita Sackville-West. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/LVfzSwIP4LCLT7IRAngaAKCnd8cT4K0/3EpqqBEy97f332nj8ACdGoKl YD6ApuYzcfwn6OHEnW8CMtc= =NsMk -----END PGP SIGNATURE-----

« previous php.pear.dev (#19195) next »