imagecreatefromjpeg
am 11.01.2005 22:55:21 von Juergen Rehberger
------=_NextPart_000_000F_01C4F884.726FD640
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi
Thanx for the fast response to my problem
I have checked my memory limit in the php.ini file and it is 8mb as well =
on my offline server. i further noticed that on my online server it =
doesnt realy depend on the filesize in mb but rather the size in pixel. =
once i try to upload images larger than 1280*960 it gives me an error =
message. on my offline server this size is no problem.
I wonder why it tries to allocate so much memory in teh first place =
since the pics are not that big in size. the last one i tried was 300kb =
but had a resolution of 2272 / 1704px. its really weird.
Regards
J
------=_NextPart_000_000F_01C4F884.726FD640--
Re: imagecreatefromjpeg
am 11.01.2005 23:17:40 von Rasmus Lerdorf
Juergen Rehberger wrote:
> Hi
>
> Thanx for the fast response to my problem
>
> I have checked my memory limit in the php.ini file and it is 8mb as well on my offline server. i further noticed that on my online server it doesnt realy depend on the filesize in mb but rather the size in pixel. once i try to upload images larger than 1280*960 it gives me an error message. on my offline server this size is no problem.
>
> I wonder why it tries to allocate so much memory in teh first place since the pics are not that big in size. the last one i tried was 300kb but had a resolution of 2272 / 1704px. its really weird.
Not really that strange. The internal manipulation format is
uncompressed so you can work out exactly how much memory it needs simply
by multiplying your resolution by the colour depth. The fact that it is
300k on your disk is completely irrelevant.
-Rasmus
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: imagecreatefromjpeg
am 11.01.2005 23:48:43 von Jason Wong
On Wednesday 12 January 2005 05:55, Juergen Rehberger wrote:
> I have checked my memory limit in the php.ini file and it is 8mb as well on
> my offline server.
Are you sure that your local server was compiled with --enable-memory-limit?
The memory limit set in php.ini will only be enforced if you have
--enable-memory-limit.
> i further noticed that on my online server it doesnt
> realy depend on the filesize in mb but rather the size in pixel. once i try
> to upload images larger than 1280*960 it gives me an error message. on my
> offline server this size is no problem.
>
> I wonder why it tries to allocate so much memory in teh first place since
> the pics are not that big in size. the last one i tried was 300kb but had a
> resolution of 2272 / 1704px. its really weird.
That's because 2272 x 1704 x (3 bytes/pixel) = a lot of memory
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
New Year Resolution: Ignore top posted posts
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php