Coder Social home page Coder Social logo

matrixages / picpic Goto Github PK

View Code? Open in Web Editor NEW
157.0 2.0 31.0 35.07 MB

A awesome image host service driven by github pages and github actions.

Home Page: https://matrixage.github.io/picpic_example/

License: MIT License

JavaScript 32.17% HTML 23.84% Less 29.35% CSS 14.65%
gh-pages picture images bed picpic picgo

picpic's Introduction

picpic logo

picpic

An awesome image host service driven by github pages and github actions.

attitude_img version_img size_img style_img License

Doc

EN | 中文文档

Installation

Install via npm:

$ npm i @matrixage/picpic

Usage

To use picpic, by below steps:

  • mkdir a folder & cd it
  • npm init & press enter through
  • npm i @matrixage/picpic
  • "init": "picpic init" into package.json scripts
  • npm run init
  • drop you images to assets folder
  • git commit & git push to you github

then active your gh-pages.

if your acccout do not active github actions, you should active github actions and git push again to trigger delopy process.

if your github repo first branch is master,please change the branch in .github/workflows/ci.yml (main => master)

Features

  • click image to preview detail
  • preview images in folder mode
  • mobile is avaible

also, more you can explore:

  • list mode
  • search
  • navigator
  • minim file system

if you have more demands, and if you think your demands reasonal, you can talk to me.

Config

{
	// supported images type
	"types": ["svg", "png", "jpg", "jpeg", "gif", "webp"],

	// enable imagemin,compress : false, disable imagemin,compress
	// support compress jpg、png and gif
	"compress": {
		// image quality 0.1 - 1
		"quality": 0.8,
		// if true, webp,jpg、png will be compress by imagemin-webp
		"webp": false
	},

	// file folder load depth
	"depth": 12
}

Accessibility

Picpic supports the all modern browsers,and you can preview picpic images in chrome or firefox.

License

Picpic is licensed under the MIT license. (http://opensource.org/licenses/MIT)

picpic's People

Contributors

matrixage avatar mayandev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

picpic's Issues

可以支持指定目录吗?

大佬你好,由于已有一个项目是专门用来给博客当图床的,可以指定根目录或者某个目录吗?

可以支持截图直接上传吗

请问现在是不是只有将图片放在 asset 文件夹下,然后执行 git commit 和 git push 推送到远程仓库,才可以生成图片链接。
不能像 picgo 那样粘贴板中的截图就可以自动上传,生成链接呢?

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.