Imgbot
2.0.3
IMGBOT는 모든 이미지 파일을 GitHub에서 크롤링하고 압축 덜 손실을 적용한 후 요청을 제출합니다. 이렇게하면 파일 크기가 줄어들지 만 크기와 품질이 좋게 남겨 둡니다.
imgbot은 .imgbotconfig json 파일을 통해 선택적 구성을 지원합니다. 이것은 IMGBOT를 사용하는 데 필요한 단계가 아니며 고급 시나리오에만 해당됩니다. 이 파일은 저장소의 루트에 배치되어 취향으로 설정해야합니다.
{
"schedule": "daily", // daily|weekly|monthly
"ignoredFiles": [
"*.jpg", // by extension
"image1.png", // by filename
"public/special_images/*", // by folderpath
],
"aggressiveCompression": "true", // true|false
"compressWiki": "true", // true|false
"minKBReduced": 500 // set reduction threshold (default to 10),
"prTitle" : "Compressed images", // set pull request title
// set the pull request body, supports any valid github markdown
// {optimization_ratio} display a message containing the optimization ratio
// {optimization_details} display the table containing the optimization details
"prBody" : " Text before optimization ratio {optimization_ratio} Text after optimization ratio
Text before optimization details {optimization_details} Text after optimization details",
}
다음은 현재 지원되는 매개 변수입니다. 변경되거나 지원되는 구성 설정이 있으시면 Repo에서 문제를 열거 나 [email protected]으로 이메일을 촬영하십시오.
일정
무시합니다
공격적 인 복합
compresswiki
https://github.com/YOUR_USERNAME/YOUR_REPOSITORY.wiki.gitminkbreduced
"minKBReduced": 500 )prtitle
"prTitle": "My title" )Prbody
"prBody": "Text before {optimization_ratio} Text after"Text before {optimization_details} Text after" ){optimization_ratio} //displays the mean optimization ratio for all images{optimization_details} //display the optimization details for every images자세한 내용 : https://imgbot.net/docs
IMGBOT의 모든 코드는 GitHub에서 사용할 수 있습니다. 우리는 서비스, 웹 사이트 및 문서에 대한 기부금을 기꺼이 수락 할 것입니다. 이곳에서 현지에서 실행하도록 설정하는 방법과 IMGBOT 작동 방식에 대한 자세한 정보를 찾을 수 있습니다.
https://imgbot.net/docs#contribing