1. 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

Discussion in 'Resolved Bug Reports' started by Slavik, Sep 9, 2011.

  1. Slavik

    Slavik XenForo Moderator Staff Member

  2. Digital Doctor

    Digital Doctor Well-Known Member

    attached. 3.93 MB.

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

    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.
  4. CyclingTribe

    CyclingTribe Well-Known Member

    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
  5. Mike

    Mike XenForo Developer Staff Member

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

Share This Page