Open
Description
What:
allow flags to exit as failure if the found images compress at a higher level than the declared threshold, thus indicating that the committed images were not pre-optimized.
Why:
- large images in git will inflate the total size of the repository and make cloning slow
- preventing large images from being stored in a git repo at the PR level
How:
- add an input flag
run-as-test
(or better wording) which exists with a failure signal if the resulting compression is bigger than the defined quality setting - the resulting comment text should also reflect the language of "testing" vs. "results", e.g.
some images did not match the compression requirements:
| Filename | Variance |
| --------------- | --------- |
| /path/file.jpg | 20% |