clarkwinkelmann some BBCode implementations support width and height attributes for the img tag.
About how the image size is controlled
jordanjay29 no, can not be achieved here
- Edited
Indeed the current BBcode implementation does not support formatting of img tags:
jordanjay29 I've just added width/height attributes to the default IMG BBCode so they will become usable in whichever version of Flarum uses the next version of the library. I have no plan to add support for dimensions in the Litedown plugin though.
If you want to support dimensions in Flarum's Markdown extension you can use a custom match for it:
$configurator->Preg->match(
'/!\\[(?<alt>.*?)\\]\\((?<src>\\S+)(?: =(?<width>\\d+)x(?<height>\\d+))?\\)/',
'IMG'
);
Is this implemented on b14 or not? Because it's a big + if we can add an image size
clarkwinkelmann Tried but dont seams to work :S
- Edited
The commit linked by JoshyPHP seems to indicate this was added for bbcode only.
Markdown compatibility seems to be possible with the snippet shared in his post.
This seems to work:
[img width=30 height=30]https://discuss.flarum.org/assets/header.png[/img]
clarkwinkelmann oh ok, thx to your quick answer. tried with 
^^