Reply to Re: How can a GIF image < 1KB use up 100+mb of memory with imagecreatefromgif()?

Your name:

Reply:


Posted by NC on 10/05/06 23:39

comp.lang.php wrote:
> re:
> http://www.google.com/search?hl=en&q=swedish+flag&btnG=Google+Search
>
> I am trying only this:
>
> [PHP]
> $image = @imagecreatefromgif('/path/to/this/image.gif');
> [/PHP]
>
> This line alone causes a segfault on my machine; when I measured how
> much memory it took to process this, it literally required up to 100+mb
> of memory to process a GIF image that is only 953 bytes!!!
>
> Is this normal behavior for imagecreatefromgif()?

No. It's possible your copy of GD is damaged. Try reinstalling GD.

Cheers,
NC

[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

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