Add lint script  check on PR

Drive-by: fix pre-existing findings
Drive-by: fix CMake build
Drive-by: fix Bazel build
96 files changed
tree: b1c1ad74cf01988dac55a4fe295fa03451b7ad96
  1. .github/
  2. c/
  3. contrib/
  4. java/
  5. scripts/
  6. wasm/
  7. .bazelrc
  8. .clang-format
  9. .gitignore
  10. brunsli.cmake
  11. BUILD.bazel
  12. CMakeLists.txt
  13. compiler_config_setting.bzl
  14. CONTRIBUTING.md
  15. explainer.md
  16. LICENSE
  17. Makefile
  18. MODULE.bazel
  19. README.md
  20. security-privacy-questionnaire.md
README.md

Introduction

CMake build

Brunsli is a lossless JPEG repacking library.

Brunsli allows for a 22% decrease in file size while allowing the original JPEG to be recovered byte-by-byte.

It is possible to try how much Brunsli will save on your images on the site brunsli.dev. Images are transcoded in browser, no data is transmitted or stored. Codec is powered by WASM technology. Safari uses “interpretation” mode for WASM at first few runs after the page load. It is much slower. To avoid long wait, please feed codec with small images first.

Build instructions

Run the following commands to clone, configure and build Brunsli:

git clone --depth=1 https://github.com/google/brunsli.git
cd brunsli
git submodule update --init --recursive
cmake -DCMAKE_BUILD_TYPE=Release -B out
cmake --build out --config Release

Prebuilt binaries

For some platforms (e.g. Windows) libraries and executables are uploaded as “artifacts” as a part of continuous integration process. Unfortunately, there is no static link to access those. Please follow the GitHub manual.