imagecreatefromjpeg + Out of memory problem

前端 未结 2 1643
执笔经年
执笔经年 2021-01-21 03:10

Hello All i have following ini variable set in phpini file.

max_execution_time 50000

memory_limit 40M

post_max_size 8M

When i try to make thumbna

2条回答
  •  野的像风
    2021-01-21 03:20

    Your problem is not that single call to imagecreatefromjpeg() but memory that you have allocated earlier. After all, the allocation fails with a memory request for only ~14kB.

    Maybe you created images before in the same script without releasing their memory with imagedestroy() or you have another memory problem. In the latter case you could use a debugging tool (e.g. webgrind) to find the memory hog.

提交回复
热议问题