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

XF 1.5 resizing picture uploads?

Discussion in 'Troubleshooting and Problems' started by jilly, Sep 13, 2015.

  1. jilly

    jilly Member

    i tried to upload a picture from my cell phone to my board, and it said the picture was too big. is there a way to set some sort of auto resize function, or some sort of option to resize it, when someone tries to upload a picture?
     
  2. 0ptima

    0ptima Well-Known Member

  3. AndyB

    AndyB Well-Known Member

    Add this to your config.php file.

    $config['maxImageResizePixelCount'] = 30000000;
     
    adwade likes this.
  4. Nuno

    Nuno Active Member

    @AndyB

    What does this means?
     
  5. AndyB

    AndyB Well-Known Member

    $config['maxImageResizePixelCount'] - default: 20000000
    The maximum size of an image (in total numbers of pixels) that XenForo will attempt to resize. Images larger than this will simply not be resized and thus may be rejected. This is calculated using width × height.

    Source: https://xenforo.com/help/config-php-options/
     
    Nuno likes this.
  6. Tracy Perry

    Tracy Perry Well-Known Member

    Very good @Nuno!
    Personally, I'm trying to be sure to let people know what an instruction like that does instead of just telling them "Add this in your config.php".
    Serves a dual purpose - it helps them, and it also lets that person and others figure out what it did/does. I'm even trying to remember to do it when I give info pertaining to OS help (but that can get rather detailed so usually just post a link).
     

Share This Page