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

Set max image size

Brogan

XenForo moderator
Staff member
#2
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.
 

Temery

Active member
#3
Thank you.

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.
 
#4
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.
This resize all external images. :/
Was looking for an alternative...
 
#6
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.
Thank you. I have long sought!
 

AndreaMarucci

Well-known member
#7
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?
 

AndreaMarucci

Well-known member
#9
You're the best Borgan. Thanks. I've put this code
Code:
/* INIZIO DIMENSIONE MAX IMMAGINI */

.message .messageContent .messageText img {
max-width: 800px;
}