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

Image too big error

Discussion in 'Troubleshooting and Problems' started by Ingenious, May 8, 2013.

  1. Ingenious

    Ingenious Well-Known Member

    My members are having an error uploading .jpg images from their cameras, getting "Image too big" as an error.

    After some testing, it seems that images from my DSLR are fine (4700 wide) but images from others are not, it seems 5000 pixels is the cut off and bigger than this produces the error.

    I set my forum to resize to 1000x1000 for posts, if I remove that limit, images >5000 pixels upload then OK but are not resized and are treated as attachments not thumbnails.

    So it seems the act of resizing the image to 1000 pixels, if the source image is > 5000 pixels to start with, causes the error.

    I spoke with my web host to see if this is a hard limit on my hosting package and the response was:

    Can anyone advise if I have missed a setting somewhere? All I can see in attachments that relates is:

    Screen shot 2013-05-08 at 19.18.02.png

    Max attachment size is set to a huge 100MB (100024KB).

    Alternatively is this indeed coded into the forum and if so, where can I change it please.

    The reason why this is important to fix is that so many cameras these days are churning out big photos and so many of my members don't have the technical skills to edit and resize them before uploading, so the forum needs to hand hold them.

    Thanks!
     
  2. CyclingTribe

    CyclingTribe Well-Known Member

    This could be a PHP size limit - check your php.ini fle for - upload_max_filesize - and see what it's set to?
     
  3. Ingenious

    Ingenious Well-Known Member

    Screen shot 2013-05-08 at 19.24.49.png
     
  4. Ingenious

    Ingenious Well-Known Member

    The only other thing I can think of is it's running out of memory, though this is set quite high for a shared host? There's nothing in the Xenforo server error logs either.

    Screen shot 2013-05-08 at 19.30.14.png
     
  5. Brogan

    Brogan XenForo Moderator Staff Member

    The FAQ in my signature explains how large images are currently handled.
     
    Ingenious likes this.
  6. Ingenious

    Ingenious Well-Known Member

    Bingo, thanks Brogan:

    Sadly this is a problem for me, as many of my members have 18 megapixel cameras! I do think this limit should be increased to reflect current cameras (though I understand as Mike said before they have to cater for the lowest denominator on shared hosting).

    Is this is dirty PHP code hack I can do in one of the core files to up this limit?
     
  7. Brogan

    Brogan XenForo Moderator Staff Member

  8. Ingenious

    Ingenious Well-Known Member

    Perfect - will wait for 1.1.5 - thanks again Brogan.
     
  9. CyclingTribe

    CyclingTribe Well-Known Member

    He's a flippin' xencyclopedia that Brogan bloke!! (y)

    How does he remember it all? :notworthy:
     

Share This Page