# Source code of the LGPL image libraries in Shutter Vault Hub

Shutter Vault Hub (Windows 1.5.88 and later, Mac 1.5.65 (35) and later) includes two prebuilt components that contain
libraries under the GNU Lesser General Public License. This folder holds their complete source code, exactly as their
builds used it, together with the build recipes. FFmpeg's source is published separately (see the same website's
source page). The Hub's own code does not modify these libraries; each ships as a separate file that can be replaced.

## 1. sharp's image libraries (libvips and the libraries bundled with it)

The Hub uses the npm package sharp 0.33.5. Its prebuilt libvips comes from sharp-libvips 1.0.4 (libvips 8.15.3):
`@img/sharp-libvips-darwin-arm64` 1.0.4 on the Mac, and the DLLs inside `@img/sharp-win32-x64` 0.33.5 on Windows. The
LGPL libraries in it, and their source here:

| Library | Version | License | File |
|---|---|---|---|
| libvips | 8.15.3 | LGPL-2.1-or-later | vips-8.15.3.tar.xz (+ vips-8-heifsave-disable-hbr-support.patch) |
| GLib | 2.81.1 | LGPL-2.1-or-later | glib-2.81.1.tar.xz (+ glib-without-gregex.patch) |
| Pango | 1.54.0 | LGPL-2.0-or-later | pango-1.54.0.tar.xz |
| librsvg | 2.58.93 | LGPL-2.1-or-later | librsvg-2.58.93.tar.xz |
| cairo | 1.18.0 | LGPL-2.1 or MPL-1.1 | cairo-1.18.0.tar.xz |
| FriBidi | 1.0.15 | LGPL-2.1-or-later | fribidi-1.0.15.tar.xz |
| libexif | 0.6.24 | LGPL-2.1-or-later | libexif-0.6.24.tar.bz2 (+ libexif-db84aefa.patch) |
| libheif | 1.18.2 | LGPL-3.0-or-later | libheif-1.18.2.tar.gz |
| proxy-libintl | 0.4 | LGPL-2.1-or-later | proxy-libintl-0.4.tar.gz |

The other libraries in that build (zlib-ng, libffi, libxml2, lcms2, mozjpeg, libpng, libspng, libimagequant 2.4.1,
libwebp, libtiff, highway, FreeType, Expat, libarchive, fontconfig, HarfBuzz, pixman, aom, cgif) are under permissive
licenses; their notices are in the Hub's legal/third-party folder.

Build recipes:
- `sharp-libvips-cb57c8e.tar.gz`: lovell/sharp-libvips at commit cb57c8e09460fa0b5c550806b667a2dfc3f7480b, the commit
  the npm registry records for sharp-libvips 1.0.4. `build/mac.sh` builds the Mac libraries from the files above
  (with the three patches) and names every version; `build/win.sh` takes the Windows libraries from libvips'
  build-win64-mxe release v8.15.3.
- `build-win64-mxe-v8.15.3.tar.gz`: libvips/build-win64-mxe at tag v8.15.3, the recipe of that Windows build. It
  builds with the MXE cross-compiling environment, which it fetches at build time.

## 2. libheif-js (the decoder for iPhone HEIC photos)

The Hub uses the npm package libheif-js 1.19.8 (LGPL-3.0), a WebAssembly build of libheif with libde265:

| Part | File |
|---|---|
| libheif-js 1.19.8 (commit fe8e9c29440b839910be9dc32e8d2b826c8217ca, the registry's gitHead) | libheif-js-fe8e9c29440b839910be9dc32e8d2b826c8217ca.tar.gz |
| libheif-emscripten v1.19.8 (the WebAssembly build's recipe: .github/workflows/emscripten.yml, dist-prep.sh) | libheif-emscripten-v1.19.8.tar.gz |
| libheif 1.19.8 at commit 5e9deb19fe6b3768af0bb8e9e5e8438b15171bf3 (the submodule of libheif-emscripten v1.19.8; its build-emscripten.sh is the build script) | libheif-5e9deb19fe6b3768af0bb8e9e5e8438b15171bf3.tar.gz |
| libde265 1.0.15 (LGPL-3.0-or-later; the version build-emscripten.sh pins) | libde265-1.0.15.tar.gz |

## Checks

`SHA256SUMS` lists every file. The GLib, Pango, librsvg and cairo tarballs matched the checksums their projects
publish (December 4, 2026). The license texts (LGPL-2.1, LGPL-3.0 with the GPL-3.0 it builds on) are in the Hub's
legal/third-party folder.

Questions: support@shuttervaulthub.com
