stevec
stevec

Reputation: 52438

How to resize github images inside github flavored markdown (i.e. issues / PRs)?

Is there any quick and easy way to change the size of an image pasted into a github issue?

Example

Here's a random github image. If it's used in a github issue like so

![image](https://user-images.githubusercontent.com/16319829/79087218-ef769280-7d81-11ea-93d6-a81ea2a7474e.png)

It will display largish.

How can we easily make it medium or small as simply as possible (preferably by only editing the url or adding something to it)?

What I've tried

I tried both of these (suggested here), but neither work:

![image](https://user-images.githubusercontent.com/16319829/79087218-ef769280-7d81-11ea-93d6-a81ea2a7474e.png | width=100)

![image](https://user-images.githubusercontent.com/16319829/79087218-ef769280-7d81-11ea-93d6-a81ea2a7474e.png = 250x250)

Note

Upvotes: 3

Views: 1754

Answers (1)

ilya.lehchylin
ilya.lehchylin

Reputation: 101

This works for me in issues:

<img src="https://user-images.githubusercontent.com/16319829/79087218-ef769280-7d81-11ea-93d6-a81ea2a7474e.png" data-canonical-src="https://user-images.githubusercontent.com/16319829/79087218-ef769280-7d81-11ea-93d6-a81ea2a7474e.png" width="200" height="200" />

Upvotes: 3

Related Questions