Hi,
I have the following code in my php script :
$fhSrc = imagecreatefrom jpeg($srcFile);
This cause me the following error : Fatal error: Allowed memory size
of 8388608 bytes exhausted (tried to allocate 4800 bytes).
I read that I should increase the memory allowed php. Not sure.
This script works fine on a Windows 2000/Apache/php4 machine but not
on a Fedora Linux/Apache/php4 machine. The configuration of php for
both computer is the same.
The gd version is 2.0.15 on Linux and 2.0 on Windows.
$srcFile is valid jpeg image of 900kb (2400x1200px). If I check the
memory use by the script just before calling imagecreatefrom jpeg I get
356760.
So it seems that imagecreatefrom jpeg allow too much memory on Linux.
Any idea ?
Thanks,
Olivier
I have the following code in my php script :
$fhSrc = imagecreatefrom jpeg($srcFile);
This cause me the following error : Fatal error: Allowed memory size
of 8388608 bytes exhausted (tried to allocate 4800 bytes).
I read that I should increase the memory allowed php. Not sure.
This script works fine on a Windows 2000/Apache/php4 machine but not
on a Fedora Linux/Apache/php4 machine. The configuration of php for
both computer is the same.
The gd version is 2.0.15 on Linux and 2.0 on Windows.
$srcFile is valid jpeg image of 900kb (2400x1200px). If I check the
memory use by the script just before calling imagecreatefrom jpeg I get
356760.
So it seems that imagecreatefrom jpeg allow too much memory on Linux.
Any idea ?
Thanks,
Olivier
Comment