You are here: How can a GIF image < 1KB use up 100+mb of memory with imagecreatefromgif()? « PHP Programming Language « IT news, forums, messages
How can a GIF image < 1KB use up 100+mb of memory with imagecreatefromgif()?

Posted by comp.lang.php on 10/05/06 22:00

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()? I am using PHP 4.3.9
with GD 2.0.1, this shouldn't happen but it does

Phil

 

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

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