Fixed Attachment handler cannot cope with large (huge) images

Digital Doctor

Well-known member
attached. 3.93 MB.

Update:
It successfully uploaded 100% here at xenforo.com
but it is not showing up in this post.
 

Pepelac

Well-known member
You must take in account, that GD reads image to memory to deal with it. So, if you upload image (e.g. landscape1.jpg from your links), it will consume 324 MB of memory (19903 * 4144 * 4). XF memory consumption is limited to 128 MB.
 

CTXMedia

Formerly CyclingTribe
There's also the default 2MB PHP upload limit to consider too ... (assuming this is a limit you need to consider when attaching with XF?) (y)

You can change this though by adding the following to your php.ini file:

Code:
file_uploads = On
upload_max_filesize = 10M //needs to be in {x}M format
Cheers,
Shaun :D
 

Mike

XenForo developer
Staff member
I've limited the thumbnailing to roughly 16 megapixels now, so that should prevent errors here.
 
Top