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

XF 1.1 Image Resize In post

Discussion in 'XenForo Questions and Support' started by DaBrute, Sep 28, 2012.

  1. DaBrute

    DaBrute Member

    Yes I did a search and nothing came up!

  2. DaBrute

    DaBrute Member

    so is there a way to have it resized it after posting?
  3. Chris D

    Chris D XenForo Developer Staff Member

    Resized to what size?

    It automatically scales to fit the confines of the post area. If you're talking about making it even smaller, really your only option is to manually resize or to upload it and insert a thumbnail.
  4. DaBrute

    DaBrute Member

    the image i just posted is way to big right?
  5. Chris D

    Chris D XenForo Developer Staff Member

    Well, it's big. But it's not too big.

    Images that are "too big" are automatically resized.

    This is a 5000+ px width image, as you can see it gets made much smaller automatically. If you click on it, it will grow to full size.


    If that's still too big, there's not much else you can do other than resizing it yourself and uploading it from your computer.
    Jake Bunce likes this.
  6. DaBrute

    DaBrute Member

    oh dang lol thanks
  7. MagnusB

    MagnusB Well-Known Member

    In the default style, xF have a css rule that set external images to max-width of 100%, meaning it will never exceed the message body. It is never resized, just forced to fit the layout.
    Chris D likes this.
  8. cjwinternet

    cjwinternet Member

    To resize an image to a smaller size than 100% edit public.css

    .messageText img,
    .messageText iframe,
    .messageText object,
    .messageText embed
    max-width: 100%; <----- CHANGE THIS
    max-width: 1024px; <----- TO SOMETHING LIKE THIS

Share This Page