sorin
sorin

Reputation: 170598

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?

Upvotes: 9

Views: 2375

Answers (2)

user3313834
user3313834

Reputation: 7837

This is still an Open issue Gitlab side:

https://gitlab.com/gitlab-org/gitlab/-/issues/24212#note_496673044

And can be found several version of this issue on other closed gitlab issues: e.g. https://gitlab.com/gitlab-org/gitlab-foss/-/issues/28294

Upvotes: 0

Kristján
Kristján

Reputation: 18813

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.

Upvotes: 7

Related Questions