Forum
Crop on upload
Hello
I have a photo comp running and keep getting this error
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 64357572 bytes) in/var/sites/s/swanagelifeboat.org.uk/public_html/perch/core/lib/PHPMailer.class.php on line 2565
i think its to do with the images sizes being too big for the email
is there a way to crop on upload ?
Thanks
Ant
PHP can't crop the image if it's too big to load into the available memory. You'll need to assign more memory to PHP.
Ahh ok thanks
was just in chat with hosting regarding memory increase
php is increased and error gone however
images are still being stored abouve the specified limit
is the below correct or do i need to add crop and specify size?
i uploaded 5 15mb images and the emails failed due to size i think
tried this and made no difference
This is my form
and its added using
perch_form('photoComp.html');
if i upload a 15MB file (abouve the 5MB limit) and click submit i dont get the perch error display
it just uploads the file and submits
am i doing somthing wrong ?
with the power of google i found a work around