MyBB Community Forums

Full Version: Image size setting with
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi Community and Support MyBB.

Just to Report The Display in Image with Big Size

Image Size Setting Not Display

if post a BIG image normal without setting size the image display OK
but if i post a image with setting more (width=800 height=400) image Not Display


Reproduction steps 
1. Create a post
2. view source code (Ctrl+Shift+S) to POST and reproduce the error
3. Add image with big size
4. Add Setting + (width=800 height=400)
5. Image example

[Image: image-test.png]

Nota Importante:
I test the same URL image in MyBB Forum Test but resize automatically always Width  [img=750x440]

i want to test with more Width like 880 but i can't do that test always automatically resize Width

Anexo: Url Test ---> Image Size Test

Thank you!  Smile
please check img tag usage [help: MyCode]
[img=WxH]link[/img]
[img=800x400]https://i.ibb.co/qdY6SSV/image-test.png[/img]
It's an SCEditor bug that the resulted text by the "insert image" button is [img width=400 height=300] ......

I recall there was a thread about this issue but can't find it right now..

And, the width and the height both works for me as in https://community.mybb.com/thread-227788.html

The width being limited may be because the theme itself limits the content's width. The parser works fine, anyway.
Thanks for your feedbacks.

Now can reproduce the error in community mybb.
https://community.mybb.com/thread-227789.html

Please... dont edit the post because automaticall Rezise the size width=750

To reproduce the bug remember the step 2: view Source code  if you change the mode, the image automatically resize to width=750

Thank you for the support.
The width being limited may be because the theme itself limits the content's width. The limit is enforced by the theme's CSS settings.

That means MyBB's parser itself doesn't limit the size of the image if no width/height provided. And the resulted display may vary in different themes, read more about adapting image's size: https://stackoverflow.com/questions/3029...-container
I think this is not the bug, it is handled via css
Thanks for your feedbacks: noyle, .m. , Eldenroot

I think the error is in the botton Insert in view Source Code Mode (Skeditor Button).

because when I write in (view Source Code) this mode the syntax botton Insert:
[img width=800 height=400]

The correct code in mode  (view Source Code) must be with (X)
[img=800x400]

[Image: sckeditor-view-source.png]


I just wanted to report this case but the fix its very simple, The easy way for fix that ---> just change your Source  (view Source Code) and fix automatically.

I don't know how to fix it, but doing this step Auto-corrects the syntax of the code image rezise


Thank you for the support!
Oh just found the original report https://community.mybb.com/thread-224668.html