Licence
Apache-2.0 AND LGPL-3.0-or-later AND MIT
Version
0.35.3
Deps
1
Size
867 B
Vulns
0
Weekly
0
Custom Sharp Build
Built from: lovell/sharp
sharp-custom and sharp-libvips-custom (@img-custom) provide prebuilt Sharp binaries with:
JXLsupportJP2support(Now included in the official builds since https://github.com/lovell/sharp-libvips/pull/367 and https://github.com/libvips/build-win64-mxe/pull/96)AV1_HIGHBITDEPTHenabled for 10/12-bit AVIF decoding
WASMbuilds are not available.JXLis not available onlinux-s390x,linux-riscv64, andlinux-armv6due to missing Highway SIMD support.
Prefer the official Sharp binaries unless you specifically need these features.
Usage
Add the following overrides to your package.json, making sure the versions match your installed sharp and sharp-libvips dependencies.
npm install
In some cases, you may need to remove node_modules and package-lock.json for the overrides to take effect.
rm -rf node_modules package-lock.json
npm install
Overrides
{
"overrides": {
"sharp": {
"@img/sharp-darwin-arm64": "npm:@img-custom/sharp-darwin-arm64@v0.35.2",
"@img/sharp-darwin-x64": "npm:@img-custom/sharp-darwin-x64@v0.35.2",
"@img/sharp-linux-arm": "npm:@img-custom/sharp-linux-arm@v0.35.2",
"@img/sharp-linux-arm64": "npm:@img-custom/sharp-linux-arm64@v0.35.2",
"@img/sharp-linux-ppc64": "npm:@img-custom/sharp-linux-ppc64@v0.35.2",
"@img/sharp-linux-riscv64": "npm:@img-custom/sharp-linux-riscv64@v0.35.2",
"@img/sharp-linux-s390x": "npm:@img-custom/sharp-linux-s390x@v0.35.2",
"@img/sharp-linux-x64": "npm:@img-custom/sharp-linux-x64@v0.35.2",
"@img/sharp-linuxmusl-arm64": "npm:@img-custom/sharp-linuxmusl-arm64@v0.35.2",
"@img/sharp-linuxmusl-x64": "npm:@img-custom/sharp-linuxmusl-x64@v0.35.2",
"@img/sharp-win32-arm64": "npm:@img-custom/sharp-win32-arm64@v0.35.2",
"@img/sharp-win32-ia32": "npm:@img-custom/sharp-win32-ia32@v0.35.2",
"@img/sharp-win32-x64": "npm:@img-custom/sharp-win32-x64@v0.35.2",
"@img/sharp-libvips-darwin-arm64": "npm:@img-custom/sharp-libvips-darwin-arm64@1.3.1",
"@img/sharp-libvips-darwin-x64": "npm:@img-custom/sharp-libvips-darwin-x64@1.3.1",
"@img/sharp-libvips-linux-arm": "npm:@img-custom/sharp-libvips-linux-arm@1.3.1",
"@img/sharp-libvips-linux-arm64": "npm:@img-custom/sharp-libvips-linux-arm64@1.3.1",
"@img/sharp-libvips-linux-ppc64": "npm:@img-custom/sharp-libvips-linux-ppc64@1.3.1",
"@img/sharp-libvips-linux-riscv64": "npm:@img-custom/sharp-libvips-linux-riscv64@1.3.1",
"@img/sharp-libvips-linux-s390x": "npm:@img-custom/sharp-libvips-linux-s390x@1.3.1",
"@img/sharp-libvips-linux-x64": "npm:@img-custom/sharp-libvips-linux-x64@1.3.1",
"@img/sharp-libvips-linuxmusl-arm64": "npm:@img-custom/sharp-libvips-linuxmusl-arm64@1.3.1",
"@img/sharp-libvips-linuxmusl-x64": "npm:@img-custom/sharp-libvips-linuxmusl-x64@1.3.1"
}
}
}