imgbot/Imgbot


An Azure Function solution to crawl through all of your image files in GitHub and losslessly compress them. This will make the file size go down, but leave the dimensions and quality untouched. Once it's done, ImgBot will open a pull request for you to review and merge. [email protected]

https://imgbot.net/

License: MIT

Language: C#

Keywords: azure, azure-functions, bot, code-quality, compress-images, dotnet-core, github-app, github-integration, help-wanted, image-compression, image-optimization, imagemagick, optimize-images


ImgBot

ImgBot crawls all your image files in GitHub and submits pull requests after applying a lossless compression. This will make the file size go down, but leave the dimensions and quality just as good.

screenshot

Configuration

ImgBot supports optional configuration through a .imgbotconfig json file. This is not a required step to using ImgBot and is only for more advanced scenarios. This file should be placed in the root of the repository and set to your liking.

{
    "schedule": "daily", // daily|weekly|monthly
    "ignoredFiles": [
    	"*.jpg",                   // by extension
    	"image1.png",              // by filename
    	"public/special_images/*", // by folderpath
    ],
    "aggressiveCompression": true // true|false
}

The following are the currently supported parameters. If there are any configuration settings you would like to see supported, please feel free to open an issue here in the repo or shoot an email over to [email protected]

schedule

  • optional
  • Accepts: daily|weekly|monthly
  • Limits the PRs from ImgBot to once a day, once a week, or once a month respectively
  • The default behavior is to receive ImgBot PRs as images require optimization

ignoredFiles

  • optional
  • Accepts the syntax for searchPattern on Directory.EnumerateFiles()
  • Limits the images optimized by ImgBot by esentially ignoring them
  • When ignoring by filename no path is necessary, when ignoring by foldername full path from root is necessary

aggressiveCompression

  • optional
  • Accepts: true|false
  • Opt in to use lossy compression algorithms
  • The default behavior without this setting is lossless compression

Find out more: https://imgbot.net/docs

Contributing

All the code for ImgBot is available on GitHub. We will gladly accept contributions for the service, the website, and the documentation. This is where you can find out how to get set up to run locally as well as detailed information on exactly how ImgBot works.

https://imgbot.net/docs#contributing

Project Statistics

Sourcerank 8
Repository Size 7.71 MB
Stars 1,173
Forks 316
Watchers 43
Open issues 62
Dependencies 0
Contributors 29
Tags 18
Created
Last updated
Last pushed

Top Contributors See all

Dan Butvinik Dependabot Dirk Lemstra Guntbert Reiter ElSiipo VocalFan Matt Wanchap Acid Chicken Imgbot dependabot[bot] Rohan Nagar Elise Livingston sootysec Chad Schulz Claire Novotny Harish Babu Pawel Kadluczka Romain V Anton Nikolenko Usman Iqbal

Recent Tags See all

1.7.0 October 30, 2019
1.6.2 October 18, 2019
1.6.1 October 18, 2019
1.6.0 October 15, 2019
1.5.1 September 29, 2019
1.5.0 September 27, 2019
1.4.0 July 21, 2019
1.3.2 July 21, 2019
1.3.1 July 01, 2019
1.3.0 June 28, 2019
1.2.3 May 20, 2019
1.2.2 May 20, 2019
1.2.1 May 20, 2019
1.2.0 May 20, 2019
1.1.0 March 24, 2019

Something wrong with this page? Make a suggestion

Last synced: 2019-11-05 13:13:19 UTC

Login to resync this repository