By lucytosh on
Hello, I installed some Image modules, and I get this error message in reports:
It is highly recommended that you set you PHP memory_limit to 96M to use ImageAPI GD. A 1600x1200 images consumes ~45M of memory when decompressed and there are instances where ImageAPI GD is operating on two decompressed images at once.
I searched all directories.. but I don't seem to find the right file... I have drupal installed in local on xampp. should I go searching through phpMyAdmin..? where else? I hope someone already solved this one..... thanks for any suggestion!!!!!!!!!!!!!!
Comments
You can increase php
You can increase php memory_limit in many ways (http://drupal.org/node/207036).
If you are looking for the php.ini file, upload a script containing a
<?php phpinfo() ?>line and browse to it, and it will tell you where it is.This should work
put this line of code in your .htaccess file and it should work fine.
php_value memory_limit 96M
A workaround...
Old thread but a perennial problem. There's now a good workaround for this if you're having problems due to very large image uploads.
max_image_size module https://www.drupal.org/project/max_image_size resizes the original image if it's over a certain size, before any image style manipulation happens.
So, instead of having problems where multiple image style filters are being applied to a 5mb image file repeatedly for every image style, the 5mb image is reduced to a (still high quality) 1mb file or similar, then the image style effects are applied to that. Much more memory efficient.