Skip to content

Commit f36be35

Browse files
jadonkcfriedt
authored andcommitted
scripts: compliance: allow webp image files
WebP images are smaller for similar resolutions and quality while being compatible with web browsers and other image processing tools. For higher resolution images, be sure to limit the display size to make the rendered pages look reasonable. This was approved by Benjamin Cabé (@kartben) in this discussion thread: #55488 (comment) Signed-off-by: Jason Kridner <[email protected]>
1 parent cb953a4 commit f36be35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/ci/check_compliance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ class BinaryFiles(ComplianceTest):
944944
def run(self):
945945
BINARY_ALLOW_PATHS = ("doc/", "boards/", "samples/")
946946
# svg files are always detected as binary, see .gitattributes
947-
BINARY_ALLOW_EXT = (".jpg", ".jpeg", ".png", ".svg")
947+
BINARY_ALLOW_EXT = (".jpg", ".jpeg", ".png", ".svg", ".webp")
948948

949949
for stat in git("diff", "--numstat", "--diff-filter=A",
950950
COMMIT_RANGE).splitlines():

0 commit comments

Comments
 (0)