You are here: Re: <img width > in apache « All PHP « IT news, forums, messages
Re: <img width > in apache

Posted by Erwin Moller on 06/24/05 16:44

Zbigniew Lisiecki wrote:

> Hi,
> to show a big picture on a web page i divided it into pieces
> and put them together in a table:
>
> <table>
> <tr>
> <td>
> <a href="part1.jpg">
> <img src="part1.jpg" width="150">
> </a>
>
> to load a chosen part in original size one has to click on it.
> Yet loading of a whole table is still very slow. Does the width
> transformation occur on a client side !!! ?

yes.
Are you surpised?

> Still if it's made by apache on server side how time-effective it
> is ?

It is not MADE by Apache on the server. Apache is merely sending the
information back to the client (=browser)

So if you have a picture named part1.jpg and you use it somewhere on your
webpage, the picture is fetched from the server.
IF you add any width and height attributes to the image-tags (as you did)
the image is resized by the browser.

If you want a smaller and bigger image, you have to create them yourself.
Tip: do not try to use Apache as a resizingtool. ;-)

> Surely it's better to prepare part[1-n].jpg as part[1-n].smaller.jpg
> in smaller sizes, but i have a lot pictures, so I am looking for an
> effective automatism. Could somebody help me, please.

yes.
But you give too little information.
So it is kind of hard to give you advise about a good batchprogram.

What OS do you use? *Nix? W$? Mac?
Do you want to spend $$ on it?

If you have *nix, try something like GIMP.
If you have W$, zillions of programs, but I liked Paint Shop Pro (but that
is 5 years ago...)
On Mac? Who knows.

Just google a bit around.
Use frases like: image batch resize tool download

> best regards
> zbyszek
> ps: how could one shrink *jpg images in batch

By letting the software open the jpg and shrink it, then save it...
How else?
It depends on the program you choose to do the batched resizing.

Regards,
Erwin Moller

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация