MyBB Community Forums
Auto-Resize Posted Images - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: Auto-Resize Posted Images (/thread-168281.html)



Auto-Resize Posted Images - nollidnosnhoj - 2015-03-10

I was wondering if there's a way to auto-resize images in a post that is larger than a specific dimensions?

I know you can set a specify dimensions using [img=300x300] but it would be convenient to just auto-resize.


RE: Auto-Resize Posted Images - mmadhankumar - 2015-03-10

its already available in 1.8.... 


in global.css find

.scaleimages img {
max-width: 100%;
}


and change that to something like this if you want the size to not to exceed a limit...

.scaleimages img {
max-width: 800px;
}



RE: Auto-Resize Posted Images - nollidnosnhoj - 2015-03-10

(2015-03-10, 10:55 AM)mmadhankumar Wrote: its already available in 1.8.... 


in global.css find

.scaleimages img {
max-width: 100%;
}


and change that to something like this if you want the size to not to exceed a limit...

.scaleimages img {
max-width: 800px;
}

This is what I need! Thanks!


RE: Auto-Resize Posted Images - rockenren - 2015-03-11

Check how it works in firefox browser, cause firefox manages max-width in other way than Google Chrome-like browsers.
When I've just changed max-width, ALL images (including smileys) become fixed size.