Reply to Re: Resize an image to fit a CSS without knowing if it is portrait or landscape shape

Your name:

Reply:


Posted by Sherm Pendley on 07/06/07 19:40

zorro <zorro@taniere.fr> writes:

> Sherm Pendley a écrit :
>> Adrienne Boswell <arbpen@yahoo.com> writes:
>>
>>> Gazing into my crystal ball I observed zorro <zorro@taniere.fr>
>>> writing in news:468e7c48$0$19901$426a34cc@news.free.fr:
>>>
>>>> I am going to see if PHP can get access to the header of the jpg
>>>> and get the width and height of the picture.
>>> Yes, it can.
>>
>> With the appropriate options enabled, it can also resize the images on the
>> server, either when they're uploaded or when they're served to visitors. As
>> Jukka said, that's a *far* better option than relying on the browser to do
>> the resizing.
>>
> You mean, as the images are frequently resized, make PHP resize and not JS?

No, I mean you should do that with PHP because browsers do a horrible job of
it for some reason. Also, there's no reason your users should have to wait
for a full-size 100Kb download, when all they're really going to see is a
little thumbnail that could have been delivered in a fraction of the time.

sherm--

--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net

[Back to original 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

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