Resize the image in jupyter notebook using markdown

Anil Verma picture Anil Verma · Jan 11, 2017 · Viewed 80.5k times · Source

I want to add the image in the Jupyter notebook and I want to have particular height and width. When I try to add the image using

![](img.png)

the code is adding the complete image but as per the image dimension and I don't have control over it. I try to use ![](img.png =200x100) but then the image does not appear.

Does anybody know of a way to add an image with pre-specified dimensions?

Answer

Mark picture Mark · Feb 11, 2017

You can use html directly

<img src="image.JPG" alt="Drawing" style="width: 200px;"/>