Generating image thumbnails using php - without running out of memory

前端 未结 2 1082
轻奢々
轻奢々 2020-12-20 05:39

I am currently using a php gd implementation to resize images which constantly runs out of memory - rather quickly. I guess the problem are the php functions, like imagecrea

2条回答
  •  清酒与你
    2020-12-20 06:38

    GD don't use that much memory, so you have other problems in your code.

    If you resize multiple images and don't call imagedestroy on a newly created image, you run in memory leaks.

提交回复
热议问题