sharp v0.35.1 Release Notes

Release Date: 2026-06-11 // 3 days ago
    • TypeScript: Ensure type definitions are published for both ESM and CJS.
      #4537

    • WebAssembly: Ensure wrapper file is published.
      #4538


Previous changes from v0.35.0

    • 💥 Breaking: Drop support for Node.js 18, now requires Node.js >= 20.9.0.

    • 💥 Breaking: Remove install script from package.json file.
      🏗 Compiling from source is now opt-in via the build script.

    • 💥 Breaking: Lossy AVIF output is now tuned using SSIMULACRA2-based iq quality metrics.

    • 💥 Breaking: Add limitInputChannels with a default value of 5.

    • 💥 Breaking: Remove deprecated failOnError constructor property.

    • 💥 Breaking: Remove deprecated paletteBitDepth from metadata response.

    • 💥 Breaking: Remove deprecated properties from sharpen operation.

    • 💥 Breaking: Rename format.jp2k as format.jp2 for API consistency.

    • ⬆️ Upgrade to libvips v8.18.3 for upstream bug fixes.

    • ✂ Remove experimental status from WebAssembly binaries.

    • ➕ Add prebuilt binaries for FreeBSD (WebAssembly).

    • 🏁 Deprecate Windows 32-bit (win32-ia32) prebuilt binaries.

    • Ensure TIFF output bitdepth option is limited to 1, 2 or 4.

    • ➕ Add AVIF/HEIF tune option for control over quality metrics.
      #4227

    • ➕ Add keepGainMap and withGainMap to process HDR JPEG images with embedded gain maps.
      #4314

    • ➕ Add toUint8Array for output image as a TypedArray backed by a transferable ArrayBuffer.
      #4355

    • Require prebuilt binaries using static paths to aid code bundling.
      #4380

    • TypeScript: Ensure FormatEnum keys match reality.
      #4475

    • ➕ Add margin option to trim operation.
      #4480
      @eddienubes

    • 0️⃣ Ensure HEIF primary item is used as default page/frame.
      #4487

    • ➕ Add image Media Type (MIME Type) to metadata response.
      #4492

    • ➕ Add withDensity to set output density in EXIF metadata.
      #4496

    • 👌 Improve pkg-config path discovery.
      #4504

    • ➕ Add WebP exact option for control over transparent pixel colour values.

    • ➕ Add support for ECMAScript Modules (ESM).
      #4509
      @florian-lefebvre