Ansel is a very powerful image manipulator. But manipulating images takes a lot of memory. And in particular, manipulating PNG images takes even more memory. The bigger the image, the more memory will be required.
If you’re getting PHP errors or a “white screen of death” when submitting entries with Ansel, the most likely culprit is not enough memory assigned for PHP to use.
The minimum recommended memory limit is 128 megabytes. If you can give PHP more, you’ll be that much less likely to run into issues when someone tries to upload and crop a very large image down the road.
128 is bare minimum. I find that I run into the least issues with servers configured for at least 512M of memory available to PHP. If you have more, you should give it more. For BuzzingPixel servers, I never run PHP with less than a 512M limit. And for servers with more RAM, I allocate even more to PHP. For instance, if the server has 2 gigs of RAM, I allocate 1 gig to PHP.
Here are some ways to increase PHP’s allowed memory usage. You may need to use one or more of them.
Not Enough Swap
If you are not a server admin, and/or don’t have access, and/or don’t feel comfortable with any of that, you may need to talk to your server admin if you are running into trouble.