Reply to Re: help! I'm getting "out of memory" errors when trying to resize an image

Your name:

Reply:


Posted by Alvaro G. Vicario on 08/18/06 18:45

*** lawrence k escribió/wrote (17 Aug 2006 13:46:54 -0700):
> I've a jpeg image that is 514k, which doesn't strike me as very large.

JPEG has a very good compression algorithm, like a 10% of original file. So
you can expect the uncompressed file to take 5MB of memory (at a minimum).

You don't say what method you're using, neither paste actual code. But if
your script creates several temp images and loads them all into memory,
that'd be an explanation for running out of memory having 20MB to play
with. Have a look at it and see if you can optimize it. Using more than
20Mb to resize a JPEG is crazy.



--
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web: http://bits.demogracia.com
+- Mi web de humor con rayos UVA: http://www.demogracia.com
--

[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

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