gitbook icon indicating copy to clipboard operation
gitbook copied to clipboard

How to resize image in the markdown of Gitbook

Open datafibers opened this issue 9 years ago • 6 comments

Just wonder How to resize image in the markdown of Gitbook?

datafibers avatar Dec 13 '16 01:12 datafibers

You can use HTML or a plugin to do that, for example:

# Heading

Here is an 200x100 image:

<img src="http://image.com/image.png" width="200" height="100" />

See existing issues on this topic:

  • https://github.com/GitbookIO/gitbook/issues/1488
  • https://github.com/GitbookIO/gitbook/issues/1451

Soreine avatar Dec 14 '16 16:12 Soreine

But we are having discussion about supporting this in Markdown: https://github.com/GitbookIO/markup-it/issues/24

SamyPesse avatar Dec 14 '16 16:12 SamyPesse

I thought it does not work since it does not render in online editor. It turns out that it shows correctly once published. Thanks a lot.

datafibers avatar Dec 15 '16 19:12 datafibers

use img tag only work on pdf version, on the published html it's getting stuck and can't read it

fruch avatar Aug 01 '17 21:08 fruch

this feels so 1990, that we have to manually resize the images... really annoying, does being a paying customer helps in that regard ?

fruch avatar Aug 01 '17 21:08 fruch

I have the same question. I need to resize screenshots for a software documentation project. Any updates on this?

nelsonam avatar Aug 17 '17 18:08 nelsonam