A awesome image host service driven by github pages and github actions.
MIT License
An awesome image host service driven by github pages and github actions.
Install via npm:
$ npm i @matrixage/picpic
To use picpic, by below steps:
npm init
& press enter throughnpm i @matrixage/picpic
"init": "picpic init"
into package.json scripts
npm run init
assets
foldergit commit
& git push
to you githubthen 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)
also, more you can explore:
if you have more demands, and if you think your demands reasonal, you can talk to me.
{
// 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
}
Picpic supports the all modern browsers,and you can preview picpic images in chrome or firefox.
Picpic is licensed under the MIT license. (http://opensource.org/licenses/MIT)