Changing image size in Markdown
Solution 1
You could just use some HTML in your Markdown:
<img src="drawing.jpg" alt="drawing" width="200"/>
Or via style
attribute (not supported by GitHub)
<img src="drawing.jpg" alt="drawing" style="width:200px;"/>
Or you could use a custom CSS file as described in this answer on Markdown and image alignment

CSS in another file:
img[alt=drawing] { width: 200px; }
Solution 2
With certain Markdown implementations (including Mou and Marked 2 (only macOS)) you can append =WIDTHxHEIGHT
after the URL of the graphic file to resize the image. Do not forget the space before the =
.

You can skip the HEIGHT

And Width

Solution 3
The accepted answer here isn't working with any Markdown editor available in the apps I have used till date like Ghost, Stackedit.io or even in the StackOverflow editor. I found a workaround here in the StackEdit.io issue tracker.
The solution is to directly use HTML syntax, and it works perfectly:
<img src="http://....jpg" width="200" height="200" />
Solution 4
Just use:
<img src="Assets/icon.png" width="200">
instead of:

Solution 5
If you are writing MarkDown for PanDoc, you can do this:
{ width=50% }
This adds style="width: 50%;"
to the HTML <img>
tag, or [width=0.5\textwidth]
to \includegraphics
in LaTeX.
Source: http://pandoc.org/MANUAL.html#extension-link_attributes

cantdutchthis
data scientist and developer. python, javascript, R + learning go
Updated on July 30, 2022Comments
-
cantdutchthis 5 months
I just got started with Markdown. I love it, but there is one thing bugging me: How can I change the size of an image using Markdown?
The documentation only gives the following suggestion for an image:

If it is possible I would like the picture to also be centered. I am asking for general Markdown, not just how GitHub does it.