MyBB Community Forums

Full Version: How to embed full size images
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi all,

I recently created a MyBB community, but currently, whenever a user posts an image (using [IMG] tags) the image is greatly reduced in size. 

Here's a demonstration of what happens currently (keeping in mind the original image is around 1920 x 1080):

What I need (sorry for the crude MS Paint job):

I need images to show at their original size, but then be scaled down if they exceed the max width of the post body.

I am currently using the theme "Osmium". The global.css says:

.scaleimages img {
	max-width: 100%;

My board version is 1.8.7

This issue occurs with all, including the default MyBB one, except for one theme called Rush.

Any help would be much appreciated, 

The Armchair Soldier
Well if you want to scale to full size then it should be min-size:

.scaleimages img {
    min-width: 100%;
Worked! Many thanks.

Scratch that; now posted images look like this for some reason:

[Image: OsE08g8.jpg]

The width is now stretched to fit the post body no matter what
Can't think of any reason why this won't work for you. You only need to make sure that you have class scaleimages in your code, or make sure that it has not been removed. Can you post a link to your site ?
Sure. Here's a link to my site:

To clarify, I am supposed to edit the global.css of Osmium? Or should I be editing the one belonging to the default MyBB theme?
Can you link to the thread where the image is ?

You should check the postbit and postbit_classic templates for:

<div class="post_body scaleimages" id="pid_{$post['pid']}">
Here's a thread with some images:

I have removed the "min-width" from the css so the images are appearing how they were when I posted this thread.

I found this in postbit:

 <div class="post_body scaleimages" id="pid_{$post['pid']}">

And I found this in postbit_classic:

<div class="post_author scaleimages">
<div class="author_information">
<strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<br />
<span class="smalltext">
{$post['usertitle']}<br />
<div class="author_statistics">


 <div class="post_body scaleimages" id="pid_{$post['pid']}">
maybe the problem is when you upload the images:

Do the following when you insert an image and see how it looks:

1) Go to

2) Choose the image from your PC - be sure to leave the default settings as is, which is to not resize the image.

3) Copy the link that appears in the direct link textbox.

4) Paste the above link into the URL textbox when you upload an image - leave height and width empty.
(2016-08-02, 02:54 PM)Ashley1 Wrote: [ -> ]4) Paste the above link into the URL textbox when you upload an image - leave height and width empty.
Sorry, what do you mean by this?
Your HTML tag is being assigned a size tag:
<img src="$/$/$/$" width="300" height="250" border="0" alt="[Image: $]">

I would recommend searching your templates for somewhere where image_size is defined or such.
When uploading your image like so:

you can try setting the height / width to what the image should be
Pages: 1 2