You are here: Re: [PHP] imagecreatefromjpeg « PHP « IT news, forums, messages
Re: [PHP] imagecreatefromjpeg

Posted by Rasmus Lerdorf on 10/20/60 11:05

Juergen Rehberger wrote:
> Hi
>
> Thanx for the fast response to my problem
>
> I have checked my memory limit in the php.ini file and it is 8mb as well on my offline server. i further noticed that on my online server it doesnt realy depend on the filesize in mb but rather the size in pixel. once i try to upload images larger than 1280*960 it gives me an error message. on my offline server this size is no problem.
>
> I wonder why it tries to allocate so much memory in teh first place since the pics are not that big in size. the last one i tried was 300kb but had a resolution of 2272 / 1704px. its really weird.

Not really that strange. The internal manipulation format is
uncompressed so you can work out exactly how much memory it needs simply
by multiplying your resolution by the colour depth. The fact that it is
300k on your disk is completely irrelevant.

-Rasmus

 

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

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