Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old August 10th, 2006, 02:55 PM
Bob Bedford
Guest
 
Posts: n/a
Default createimagefromjpeg memory error

Hi all,
I've this error on the createimagefromjpeg with many image on my server.

Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to
allocate 11264 bytes) in ....

The worse thing is that even some images that are 500ko have this problem
(I've limited the filesize to 1MB but this doesn't fix the problem as you
can see 500ko has some problems). I can't change the 16MB limit from my
hosting, so I've to find an other solution. I've asked to install the Netpbm
library but this is not possible.

What's the solution for this problem ? The hosting said to go to a dedicated
server but we can't (price).

Please help, many people have this problem.



  #2  
Old August 10th, 2006, 04:35 PM
Simon Stewart
Guest
 
Posts: n/a
Default Re: createimagefromjpeg memory error


The problem is not the filesize but the number of megapixels that the
picture has.
Probably with 16Mb you can only handle around 2 or 3 Megapixels whatever the
jpg filesize is because this is what php GD allocates to manipulate a
picture of a given size.

Solutions?
Research libraries that can be exec'd and work in a different process space.



"Bob Bedford" <bob@bedford.comwrote in message
news:44db3bcf$0$32085$5402220f@news.sunrise.ch...
Quote:
Hi all,
I've this error on the createimagefromjpeg with many image on my server.
>
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to
allocate 11264 bytes) in ....
>
The worse thing is that even some images that are 500ko have this problem
(I've limited the filesize to 1MB but this doesn't fix the problem as you
can see 500ko has some problems). I can't change the 16MB limit from my
hosting, so I've to find an other solution. I've asked to install the
Netpbm library but this is not possible.
>
What's the solution for this problem ? The hosting said to go to a
dedicated server but we can't (price).
>
Please help, many people have this problem.
>
>

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles