Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to resize images included in GitHub documentation pages?

I have a README.rst page on GitHub but I am unable to specify the size of the linked images and really I don't want to include them in my repository.

See https://github.com/pycontribs/jira

Somethink like this was supposed to work, but GitHub seems to ignore the width parameter.

.. image:: http://blog.jetbrains.com/pycharm/files/2015/12/PyCharm_400x400_Twitter_logo_white.png
    :width: 100px

Any solutions or workarounds?

like image 879
sorin Avatar asked Feb 18 '16 16:02

sorin


People also ask

Can you resize an image in markdown?

Unfortunately, there is no support for resizing an image using the Markdown syntax. Raw HTML needs to be used to change the image size in Markdown.


1 Answers

It looks like GitHub is intentionally stripping images sizes. The do appear, however, to support embedding raw HTML (reST docs). If that still doesn't work, I'd resize the image files.

like image 120
Kristján Avatar answered Oct 13 '22 14:10

Kristján