Fixed Attachment handler cannot cope with large (huge) images


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.


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:

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


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