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

Quick question about image resizing ...

Discussion in 'XenForo Pre-Sales Questions' started by Terry Stevens, Mar 22, 2012.

  1. Terry Stevens

    Terry Stevens Member

    Currently, I'm using vB4 to manage a comicbook artwork forum. I use this hack ...

    http://www.vbulletin.org/forum/showthread.php?t=237650&page=10

    (SevenSkins ImageResizer) to ensure users don't post massive pictures inline and cause the forum to side-scroll perpetually, etc.

    Is there any sort of functionality existing already within XenForo or within an addon that would duplicate this?
     
  2. Terry Stevens

    Terry Stevens Member

    I should clarify, at present users are not able to upload attachments and typically link to off-site images. I can't really change that on a large scale, because my users will overwhelm my available space pretty quickly.
     
  3. DBA

    DBA Well-Known Member

    Images are automatically resized to the window, click to view them full size. See below.

    [​IMG]
     
  4. Terry Stevens

    Terry Stevens Member

    uh ... wow. Thanks! So will they resize to the forum width in a fixed-width scenario?
     
  5. DBA

    DBA Well-Known Member

    That is correct.

    In a fluid setup it'll be the same size as your browser window unless your window is smaller than the min-width of the forum. For example make your browser window really small and look at the above image.
     
  6. Terry Stevens

    Terry Stevens Member

    Excellent, thanks again. This was pretty much the last stumbling block for me!
     
    Pereira likes this.
  7. Brogan

    Brogan XenForo Moderator Staff Member

    Note the limitations mentioned in the FAQ.

    http://xenforo.com/community/threads/frequently-asked-questions.5183/#post-180445


    Why can't I upload an image, even though it is smaller than the maximum dimensions (pixels) permitted?
    Server-side file size (KB) resizing is not supported. Any files which are larger than the maximum size specified in the ACP -> Options -> Attachments: Maximum Attachment File Size (KB) will be rejected.


    Why can I upload an image, even though it is larger than the maximum file size (KB) permitted?
    Uploaded files are first resized based on the maximum physical dimensions (pixels) set in the ACP -> Options -> Attachments: Maximum Attachment Image Dimensions. If the resized image is below the maximum file size (KB) limit, then it will be allowed.
    Note that with XenForo 1.1 and above, images of 16 megapixels and over will not be resized; this is to prevent fatal errors due to running out of memory. If the Maximum Attachment Image Dimensions combined total (width x height) is set lower than this limit, images greater than 16 megapixels, or with a dimension larger than that permitted, will be rejected with an error stating The uploaded image is too big. If the Maximum Attachment Image Dimensions combined total (width x height) is set to 0 or greater than 16 megapixels, the image will appear as an attachment without a thumbnail.
     
    ARSamo likes this.

Share This Page