When importing high resolution images, I get a blank page or error

When importing high resolution images, I get a blank page or error

This problem usually relates to Pixaria exceeding the allowed maximum memory usage allocated to PHP on the web server. If this happens, PHP stops running, either showing a blank page or by generating an error:


Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 12864 bytes) in
/home/public_html/pixaria/resources/includes/libraries/psg.graphics.lib.php on line 210

The amount of memory used by PHP when resizing high-resolution images depends on the number of pixels in the image, the operating system type and the version of the GD graphics library which PHP is using. The typical memory usage of Pixaria is very low, but resizing images uses a lot more memory than usual because JPEG images have to be decompressed and loaded into memory before they can be resized.

There are two ways to get around this issue:

  1. Increase the memory allowance for PHP. This can be done by your server administrator, ISP, hosting company or by editing the php.ini configuration file on your server.
  2. Manually generate all your thumbnails offline and upload them using an FTP program. This bypasses the built in resizing mechanism and therefore this problem.

What if this doesn't work?

Sometimes, increasing the memory limit of PHP on it's own doesn't work and in such cases, you may also need to increase these other limits on script execution:

max_execution_time - length of time a script can run for
max_input_time - length of time a script can take processing form data
memory_limit - amount of physical memory a script can use
post_max_size - amount of data that can be sent in a form with method of 'post'

Go back to contents

Created: 2006-10-25 17:18:20
Last edited: 2007-11-05 06:51:48

User Manual Search

You can search the Pixaria Gallery user manual by entering keywords here. Keep your search simple for the best results.

Pixaria Version Information

Third Party Tools