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

Posted by Veikko Mδkinen on 06/28/05 13:23

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 !!! ?
> Still if it's made by apache on server side how time-effective it
> is ?

Apache doesn't do any image transformation. It doesn't even know there
is a <img> tag or that it has some width attribute in your html source.
It's the browser who scales the picture.

Using big pictures and scaling them down with <img width=..> is a
really bad idea because the browser needs to download the big picture
and the scale it while rendering HTML. This is not just extremely slow
but it also makes images look bad. Browsers are for browsing, not for
image manipulation.

> 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.
> best regards
> zbyszek
> ps: how could one shrink *jpg images in batch

- graphical image manipulation program like Photoshop, Infranview or
ExifFPro (there are many, many more if these don't suit you or your
favorite operating system)
- command line tool like ImageMagick's convert (available for Linux and
Win/Cygwin among others).
- image gallery web application (written in php running on your server
for example).


-veikko

--
veikko
mail@ .com
makinen

 

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

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация