GithubHelp home page GithubHelp logo

suyanye123 / image-host Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 13.79 MB

我的github私人图床

Home Page: https://suyanye123.github.io/image-host/

JavaScript 32.17% CSS 14.65% HTML 23.84% Less 29.35%

image-host's Introduction

使用方式

  • 把图片移动到 assets 文件夹中
  • 执行git commit & git push 推送你的代码到 github

github actions 检测到项目中 .github 文件夹下的部署脚本之后,将会启动自动化构建把你的图片打包编译到 gh-pages 分支上去。

如果你发现生成的图片链接可以访问,但是放在 github 的 readme.md 中无法显示,那最有可能是 githubusercontent.com 被本地服务商 DNS 污染,解决方案是加入如下 DNS 解析到你的 hosts 文件中:

199.232.96.133 raw.githubusercontent.com
199.232.96.133 camo.githubusercontent.com

如果你发现访问 github 很慢,那是因为本地服务商在进行 DNS 网络过滤,加入如下 host 跳过服务商网络过滤:

140.82.112.3 github.com

配置文件

{
  // 支持的图片格式
  "types": ["svg", "png", "jpg", "jpeg", "gif", "webp"],

  // 开启图片压缩,当compress : false时,关闭压缩
  // 仅支持对jpg、png、gif进行压缩
  "compress": {
    // 图片质量 0.1 - 1
    "quality": 0.8,
    // 如果设定为true,webp,jpg、png将使用imagemin的webp插件进行压缩
    "webp": false
  },

  // 文件夹读取深度
  "depth": 12
}

image-host's People

Contributors

suyanye123 avatar

Watchers

 avatar

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.