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

Set max image size

Discussion in 'General XenForo Discussion and Feedback' started by Temery, Oct 28, 2011.

  1. Temery

    Temery Active Member

    Can I set a max image size posted by a user? Same question for signature images.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Uploaded image maximum dimensions (attachments) are set in the ACP -> Options -> Attachments.

    For external images, add some CSS to EXTRA.css:
    Code:
    .bbCodeImage {
    max-width: 100px;
    max-height: 100px;
    }
    Change the px values to suit or use a % if you prefer.
     
    tomato likes this.
  3. Temery

    Temery Active Member

    Thank you.

     
  4. Dismal Shadow

    Dismal Shadow Active Member

    This resize all external images. :/
    Was looking for an alternative...
     
  5. kidstronger

    kidstronger Member

    [​IMG]


    why not working for me??:(
     
  6. tomato

    tomato New Member

    Thank you. I have long sought!
     
  7. AndreaMarucci

    AndreaMarucci Well-Known Member

    Rgardin this issue, I've tried the code above with no luck. My members use imgur and using that code the images are not resized. I've seen that the code regarding these images is something like that

    Schermata 2014-03-03 alle 17.46.58.png

    so I've put in extra.css this code
    Code:
    .bbCodeImage {
    max-width: 800px;
    }
    
    bbCodeImage LbImage {
    max-width: 800px;
    }
    but no result at all. The images always appears at full dimension...

    Any help?
     
  8. Brogan

    Brogan XenForo Moderator Staff Member

  9. AndreaMarucci

    AndreaMarucci Well-Known Member

    You're the best Borgan. Thanks. I've put this code
    Code:
    /* INIZIO DIMENSIONE MAX IMMAGINI */
    
    .message .messageContent .messageText img {
    max-width: 800px;
    }
     

Share This Page