Re: Images
| From: | Bjorn Van Simaeys | Date: | Wed, 08 Aug 2001 15:50:17 +0000 |
| Subject: | Re: Images | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-61847@lists.php.net to get a copy of this message | ||
Don't try to find such a difficult solution. Even HTML
can solve this for you! Just put the image tag in your
code and specify only the width (or only the height).
The browser wil automatically resize the image so it
displays proportionally.
<img src="..." width="100">
I know it is not a W3 recommendation to emit either
the height or width tag. But this way you can solve
your problem easily without putting any extra load on
the server. Better still - the image will already be
in the client's cache and will load faster in the next
page!
Greetz,
Bjorn Van Simaeys
www.bvsenterprises.com
--- Hong Zhang <zhangh@corp.earthlink.net> wrote:
> On Tue, 7 Aug 2001, Fernando Avila wrote:
>
> > Date: Tue, 7 Aug 2001 22:25:39 +0100
> > From: Fernando Avila <fano@inter-k.com.ar>
> > To: php-general@lists.php.net
> > Subject: [PHP] Images
> >
> > Hello php-general,
> >
> > Hi, I'm having some troubles because i need to
> resize an image.
> > I mean, i have a page that lists every notice in
> the page with a
> > small picture, and if you click over the notice
> you get a full
> > article with the big photograph.
> > But i want to put in the server only one picture
> (the big one) and i
> > need php to resize it to a small preview for the
> list.
> > How can i do it?
> >
>
> I remember there is imlib extension to php which can
> some of the
> image work.
>
> HZ
>
>
> --
> 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
>
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/