tanmng / docker-chevereto-free

Dockerfiles for various release of Chevereto Free
38 stars 26 forks source link

image can't show in external links #27

Closed zzan1 closed 3 years ago

zzan1 commented 3 years ago

Image can be shown in browser directly query the image address. But copy the link to notion or my blog, it cannot be show.

Please forgive my poor english, if you have any question don't hesitate to ask me.

tanmng commented 3 years ago

Hello @zzan1 , thanks for the interest in the project.

Please describe the situation a bit more. As far I understand, if you can see the picture when you try to open them directly in your browser, you should be able to use the link as source for any <img> tag. The only possible explanation is that you're using the link to the page (in Chevereto) instead of the link to the image itself.

So can you please explain further what you are trying to do, and what link did you put into your blog post?

Thank you very much in advance

zzan1 commented 3 years ago

Yes, I use the image link in markdown syntax. for example:

The image link: http://www.aatrox.ltd:444/images/2021/03/13/20210313122729.png;

you can directly open the image in browser.

but in notion or roamreseach , it will be showed : image

And in myblog, you can find all the image in this post were lost. This might be a more direct scenario of this problem.

tanmng commented 3 years ago

Thank you very much for the details.

It appears you're using markdown as below to insert your picture

!()[http://www.aatrox.ltd:444/images/2021/03/13/20210313122729.png]

However, I believe that's incorrect. As documented here you have to have correct parentheses, can you please try to change it to be as follow and check again

![Some Text](http://www.aatrox.ltd:444/images/2021/03/13/20210313122729.png)

I tried the aforementioned code and it seems to work just fine - see below

Some Text

zzan1 commented 3 years ago

The markdown syntax is my careless. I found this question in my blog is that the https automatically transform the picture link http to https. This result of a wrong picture link request.

For notion or other website, this problem might caused by website picture transfer policy. It's not the porblem of chevereto.

Thanks for your patients and time.