Giter Site home page Giter Site logo

图片上传失败 about md HOT 4 CLOSED

doocs avatar doocs commented on August 23, 2024
图片上传失败

from md.

Comments (4)

yanglbme avatar yanglbme commented on August 23, 2024

@qidian360 你好,图片从哪里上传?上传到哪里?麻烦详细说一下,谢谢。

from md.

develop-assistant avatar develop-assistant commented on August 23, 2024

@yanglbme 您好,

  1. 图片是github+PicGo搭建的图床中的图片,例如
    https://raw.githubusercontent.com/qidian360/oss/master/img/%E7%BA%BF%E7%A8%8B%E6%B1%A0%E5%AE%9E%E7%8E%B0%E5%8E%9F%E7%90%86.png
  2. 本地markdown编辑时,插入上述图片,将渲染后的页面复制粘贴在微信公众号的富文本编辑框,粘贴后会有提示:图片上传失败;
  3. 图壳中的图片做同样的操作,微信富文本编辑框无报错

from md.

yanglbme avatar yanglbme commented on August 23, 2024

@qidian360
GitHub 使用的是美国的服务器,你资源存放在上面,在 markdown 中引用链接,然后渲染图文复制到公众号,图片上传失败是正常的。

你不妨使用国内的 Git 服务 Gitee 作静态资源托管,正常来说是能成功的。

我在 doocs/md 编辑器 使用语法 ![](https://gitee.com/yanglbme/resource/raw/master/images/back.jpg) 复制到公众号,正常显示。

from md.

develop-assistant avatar develop-assistant commented on August 23, 2024

@yanglbme 非常感谢

from md.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.