# mdbook-image-size A mdbook preprocessor which support image size syntax ## size ### width & height From ```md ![the alt](path/to/your/image "the title" =500x400) ``` To ```html

the alt

``` ### width only From ```md ![the alt](path/to/your/image "the title" =500x) ``` To ```html

the alt

``` ### height only From ```md ![the alt](path/to/your/image "the title" =x400) ``` To ```html

the alt

``` > [!TIP] > No alt or title is ok. ## align ### left left is default ### center From ```md ![the alt](path/to/your/image "the title" =500x400 center) ``` To ```html

the alt

``` ### right From ```md ![the alt](path/to/your/image "the title" =500x400 right) ``` To ```html

the alt

``` ## Installation ```sh cargo install mdbook-image-size ``` add it as a preprocessor in book.toml ```toml [preprocessor.image-size] command = "mdbook-image-size" ```