Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only images from github are displaying #421

Closed
PenaflorPhi opened this issue Feb 3, 2022 · 5 comments
Closed

Only images from github are displaying #421

PenaflorPhi opened this issue Feb 3, 2022 · 5 comments

Comments

@PenaflorPhi
Copy link

I'm trying to display an image in the preview but I'm not sure if I'm doing something wrong. If I upload the image to github it displays correctly. What I'm doing on my file is

![1](https://imgur.com/Image.png)
![2](/home/user/path/to/file/Image.png)
![3](./path/to/file/Image.png)
![4](https://camo.githubusercontent.com/verylongstringofnumbers) 

1 - 3 don't work, the browser (Firefox, Firefox-Nightly and Chromium) either display nothing (not even the string of text) or they display an empty rectangle. The fourth one works but it's the link that GitHub gives after putting the first one in the readme, is there way I can display images without putting them in GitHub?

@iamcco
Copy link
Owner

iamcco commented May 13, 2022

It should work and display local image or any other online image. make sure your path is correct,please check the browser network if it does not work.

@eeeXun
Copy link
Contributor

eeeXun commented May 13, 2022

Markdown code.

# hello

![hello](https://i.imgur.com/W7jfX9h.png)

And I got this error. How to fix that

image

@iamcco
Copy link
Owner

iamcco commented May 13, 2022

The image (https://i.imgur.com/W7jfX9h.png) you insert in the markdown file is forbidden to display by imgur

@iamcco
Copy link
Owner

iamcco commented May 13, 2022

Change 127.0.0.1 to localhost to see if it can display. I don't know if it's because imgur block IP website

@eeeXun
Copy link
Contributor

eeeXun commented May 13, 2022

Yes, change to localhost would work

@iamcco iamcco closed this as completed in 8d7ce92 May 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants