Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Defining the PHP memory_limit
If you get a message like this one,
"Allowed memory size of 536870912 bytes exhausted (tried to allocate 13743895345 bytes) at DOCROOT/lib/private/image.php#xxx"
it is likely that you have a PHP
memory_limit set too low for your needs. Image processing requires a lot of memory.
Here is a quick Bytes to MegaBytes conversion table to make more sense out of these large numbers
Understanding your requirements
In order to understand what your memory requirements might be, you should visit this website which lets you input an image's dimensions and the target size and will calculate how much memory the operation will require:
Those are the memory requirements when resizing to the default 2048x2048
All those numbers are on top of what the process is already using for its normal operations. Usually 30-60MB
Adjusting the limit
Please refer to the ownCloud documentation to understand where you should modify the PHP
Note: The syntax is different depending on where you make the modification.