• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed Attachment handler cannot cope with large (huge) images

Pepelac

Well-known member
#3
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
#4
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
#5
I've limited the thumbnailing to roughly 16 megapixels now, so that should prevent errors here.