1

I have an application that resizes uploaded images, using the Codeigniter image manipulation class and GD.

However, the client needs to be able to resize super-large images, 6000px or higher. I have memory issues when this occurs.

My question is in two parts- is there a way to calculate how much memory is required, via the dimensions of the image?

Is there a less memory intensive option for resizing these images, which appear to go over 250MB for each action.

Thanks.

Michael Watson
  • 1,079
  • 3
  • 14
  • 26

1 Answers1

0

GD always works on the uncompressed image; this is where the memory is used. You can estimate the memory consumption as shown in this question. For more information, see also here or here.

Community
  • 1
  • 1
Andreas
  • 1,751
  • 2
  • 14
  • 25