XF 1.1 Image Resize In post

DaBrute

Member
Yes I did a search and nothing came up!

Apocalypse-Signs.jpg
 
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.
 
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.

new-york.jpg


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.
 
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.
 
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
}
 
Top Bottom