Memory error when creating image styles I am getting the following error when image styles are being created on my Drupal 7.24 site:


  mod_fcgid: stderr: PHP Fatal error:  Allowed memory size of 134217728
  bytes exhausted (tried to allocate 73834563 bytes) in
  modules/system/image.gd.inc on line 237"


My style is doing a scale and crop down to 300x200.

I know this could be a problem with my memory limit, which is currently 128M.  As this is high, this doesn't seem like an issue. 

Could it be from the use of the File (Field) Paths" module for my image names?
What's the size of your image? For scale you may need roughly:

X * Y * 4 (bytes per pixel) * 2 (for source and destination image) * 2 ( to make sure there is enough RAM for computation).

Now, core can require up to 32 MB, and modules can easily double or even quadruple this. So, let's optimistically assume your core + modules only use 64MB. That leaves other 64MB. It means you can safely scale images up to 4194304px. It seems you have enough memory for 4Mpx input images. Anything larger can cause this error and it will not be anything surprising.