There is a content type in my website that has an image field. Some contents have images that are larger than 20MB.
I created an
fp which scales and resizes the images in 800X400px it works well but when the browser displays this resized version it reports the following error
Allowed memory size of 134217728 bytes exhausted (tried to allocate 73834563 bytes) in modules/system/image.gd.inc on line 237
I know by increasing the
memory_limit the problem will be solved (even though it is not recommended).
From what I know Drupal creates a distinct file of the original image for every image style, so in
sites/default/files/styles/fp there is a resized version of the original image. It means when browser displays the resized image, the PHP needs no process to resize the image, it only displays another image which is the resized version. But why it displays the above error while it only needs to display an image (styled version) which its size is about 200kb ?