|
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
--
Navigation:
[Reply to this message]
|