يزحف 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",
}
فيما يلي المعلمات المدعومة حاليًا. إذا كان هناك أي إعدادات تكوين ترغب في رؤيتها تم تغييرها أو دعمها ، فلا تتردد في فتح مشكلة هنا في الريبو أو تصوير بريد إلكتروني إلى [email protected]
جدول
تجاهل
aggressivecression
Compresswiki
https://github.com/YOUR_USERNAME/YOUR_REPOSITORY.wiki.gitminkbreduced
"minKBReduced": 500 لعتبة 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#contributing