@napi-rs/image

@napi-rs/image@1.9.2

4/20/2024

What's Changed

New Contributors

Full Changelog: @napi-rs/image@1.9.1...@napi-rs/image@1.9.2

@napi-rs/image@1.9.1

2/22/2024

What's Changed

Full Changelog: @napi-rs/image@1.9.0...@napi-rs/image@1.9.1

@napi-rs/image@1.9.0

2/19/2024

What's Changed

Full Changelog: @napi-rs/image@1.8.0...@napi-rs/image@1.9.0

@napi-rs/image@1.8.0

2/14/2024

What's Changed

Full Changelog: @napi-rs/image@1.7.0...@napi-rs/image@1.8.0

@napi-rs/image@1.7.0

9/27/2023

🚨Security update for CVE-2023-4863

  • https://github.com/advisories/GHSA-j7hp-h8jx-5ppr
  • https://blog.isosceles.com/the-webp-0day/

What's Changed

New Contributors

Full Changelog: @napi-rs/image@1.6.1...@napi-rs/image@1.7.0

@napi-rs/image@1.6.1

3/12/2023

What's Changed

New Contributors

Full Changelog: @napi-rs/image@1.6.0...@napi-rs/image@1.6.1

@napi-rs/image@1.6.0

2/27/2023

What's Changed

New Contributors

Full Changelog: @napi-rs/image@1.5.1...@napi-rs/image@1.6.0

@napi-rs/image@1.5.1

1/29/2023

1.5.1 (2023-01-29)

Bug Fixes

  • image: update napi to fix electron create Buffer issues (#39) (e710222)

@napi-rs/image@1.5.0

1/16/2023

Core updates

Fast Resize

Powered by https://github.com/Cykooz/fast_image_resize

Performance

x86_64 (AVX2)

OS:  Windows 11 x86_64
Kernel: 10.0.22621
CPU: AMD Ryzen 9 5950X (32) @ 3.400GHz
Memory: 2535MiB / 32055MiB
sharp resize: 415.966ms
@napi-rs/image resize: 529.884ms
fast resize: 316.731ms

ARM64 (NEON)

OS: macOS 13.1 22C65 arm64
Host: MacBookPro18,2
Kernel: 22.2.0
CPU: Apple M1 Max
Memory: 8915MiB / 65536MiB
sharp resize: 616.549ms
@napi-rs/image resize: 525.776ms
fast resize: 431.185ms
const output = await new Transformer(NASA).fastResize({
  width: 1024,
  filter: FastResizeFilter.Lanczos3,
}).png()

We are keeping the resize API because the ResizeFilter algorithm is different between the fast_image_resize and image crates.

overlay

writeFileSync(
  'output-overlay-png.png',
  await new Transformer(PNG).overlay(PNG, 200, 200).png()
)

image

What's Changed

New Contributors

Full Changelog: @napi-rs/image@1.4.4...@napi-rs/image@1.5.0

@napi-rs/image@1.4.4

1/3/2023

What's Changed

Full Changelog: @napi-rs/image@1.4.3...@napi-rs/image@1.4.4

@napi-rs/image@1.4.3

1/3/2023

What's Changed

Full Changelog: @napi-rs/image@1.4.2...@napi-rs/image@1.4.3

@napi-rs/image@1.4.2

12/20/2022

1.4.2 (2022-12-20)

Bug Fixes

  • binding: early return when input images are optimized (#28) (b695642)

@napi-rs/image@1.4.1

10/7/2022

1.4.1 (2022-10-07)

Note: Version bump only for package @napi-rs/image

@napi-rs/image@1.4.0

8/23/2022

1.4.0 (2022-08-23)

Features

@napi-rs/image@1.3.0

5/18/2022

1.3.0 (2022-05-18)

Features

  • image: implement rawPixels and rawPixelsSync (43e3938)

@napi-rs/image@1.2.0

5/2/2022

1.2.0 (2022-05-02)

Features

  • image: implement crop (8bccc89)
  • image: support decode avif and webp (#18) (2813560)

@napi-rs/image@1.1.2

4/22/2022

1.1.2 (2022-04-22)

Bug Fixes

  • image: manipulate image has no effect (e224c25)
  • image: webp encode LumaA8 and Luma8 (2473680)

@napi-rs/image@1.1.1

4/21/2022

1.1.1 (2022-04-21)

Bug Fixes

  • binding: resize options and jpeg compress implementation (b23c53b)

@napi-rs/image@1.1.0

4/19/2022

1.1.0 (2022-04-19)

Features

  • async Transformer class (#9) (7cd00d4)
  • image: implement png_quantize (66f5e0f)
  • image: implement svg_min (5b916b3)
  • image: support more operations on Transformer (af8ed99)
  • image: support Transformer from raw rgba pixels (8d49a8c)
  • support avif (81fc73a)
  • support webp (e90ecdc)
  • transform into monorepo (#3) (d0de72e)