94 Commits

Author SHA1 Message Date
LongYinan
71fae353ff
chore(release): publish
- @napi-rs/image@1.12.0
2025-12-08 15:39:38 +08:00
LongYinan
2cb265e472
chore: upgrade all deps (#170)
* chore: upgrade all deps
2025-12-08 15:28:44 +08:00
renovate[bot]
cb45c5e587
chore: bump up Rust crate oxipng to v10 (#168)
* chore: bump up Rust crate oxipng to v10

* finish upgrade

* fix: update oxipng v10 API for armv7 build

Renamed `deflate` field to `deflater` and `Deflaters` enum to `Deflater`
to match oxipng v10 API changes.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: LongYinan <lynweklm@gmail.com>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-08 11:35:22 +08:00
renovate[bot]
2bd70b2ee7
chore: bump up all non-major dependencies (#153)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: LongYinan <lynweklm@gmail.com>
2025-12-07 09:55:22 +00:00
Copilot
ec6e322148
feat(png): add automatic gamma detection from PNG metadata for color-accurate quantization (#152)
* Initial plan

* Initial analysis of PNG quantization color distortion issue

Co-authored-by: Brooooooklyn <3468483+Brooooooklyn@users.noreply.github.com>

* fix(png): correct gamma handling in PNG quantization to prevent color distortion

Co-authored-by: Brooooooklyn <3468483+Brooooooklyn@users.noreply.github.com>

* feat(png): add configurable gamma parameter for non-sRGB images in quantization

- Add optional gamma parameter to PngQuantOptions
- Default to 0.45 (sRGB) but allow override for linear RGB (1.0) and other color spaces
- Added comprehensive documentation with common gamma values
- Addresses concern about non-sRGB source images

Co-authored-by: Brooooooklyn <3468483+Brooooooklyn@users.noreply.github.com>

* feat(png): add automatic gamma detection from PNG metadata in quantization

Co-authored-by: Brooooooklyn <3468483+Brooooooklyn@users.noreply.github.com>

* feat(png): remove manual gamma override, use only automatic detection

Removed the gamma field from PngQuantOptions struct per feedback from @Brooooooklyn.
Now only uses detect_gamma_from_png_info() for automatic gamma detection from
PNG metadata (sRGB chunk, gAMA chunk, or sRGB fallback).

Co-authored-by: Brooooooklyn <3468483+Brooooooklyn@users.noreply.github.com>

* remove package-lock.json and add to gitignore

Co-authored-by: Brooooooklyn <3468483+Brooooooklyn@users.noreply.github.com>

* revert accidental yarn.lock format change and generated files

Co-authored-by: Brooooooklyn <3468483+Brooooooklyn@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Brooooooklyn <3468483+Brooooooklyn@users.noreply.github.com>
2025-09-04 10:00:26 +08:00
LongYinan
06948ae832
fix: webp build (#147) 2025-08-17 08:18:02 -07:00
LongYinan
a1ebba9d43
chore(release): publish
- @napi-rs/image@1.11.2
2025-08-09 21:49:34 +08:00
renovate[bot]
5f7aab7fed
chore: bump up Rust crate libwebp-sys to 0.13 (#143)
* chore: bump up Rust crate libwebp-sys to 0.13

* Try fix

* fix again

* fix again

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: LongYinan <lynweklm@gmail.com>
2025-08-09 15:45:11 +08:00
LongYinan
39ed38a133
chore(release): publish
- @napi-rs/image@1.11.1
2025-07-25 22:06:41 +08:00
LongYinan
6b9fc30b86
chore: upgrade to NAPI-RS 3.0 stable (#142)
* chore: upgrade to NAPI-RS 3.0 stable

* upgrade debian

* edition

* napi cross

* napi cross

* Install nasm

* cross aarch64

* image version

* save

* update lock

* process.arch

* lockfile

* move artifacts

* set node version

* ubuntu

* wasm artifacts name

* cflags

* upgrade NAPI
2025-07-24 22:02:44 +08:00
LongYinan
b59adf7830
chore(release): publish
- @napi-rs/image@1.11.0
2025-07-07 21:29:30 +08:00
LongYinan
f6613b02fa
chore: async init wasm on browser 2025-07-07 21:29:19 +08:00
Vasilii A
829ec1ad17
feat: metadataSync (#137) 2025-06-28 19:40:37 +08:00
LongYinan
2e8fcc3e92
chore(release): publish
- @napi-rs/image@1.10.0
2025-06-28 16:54:23 +08:00
LongYinan
7d1e771f98
chore: align @napi-rs/cli versions 2025-06-28 16:54:14 +08:00
LongYinan
fbcda353e8
chore(image): use slice rather than Uint8Array (#134) 2025-06-27 05:06:01 -07:00
LongYinan
89631c32fc
feat: upgrade all deps (#132) 2025-06-27 19:24:12 +08:00
renovate[bot]
bccf9bb45b
chore: bump up all non-major dependencies (#119)
* chore: bump up all non-major dependencies

* Fix warning

* Fix warning

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: LongYinan <lynweklm@gmail.com>
2024-12-05 21:45:00 +08:00
renovate[bot]
8990d83b96
chore: bump up Rust crate fast_image_resize to v5 (#113) 2024-10-03 22:14:02 +01:00
renovate[bot]
ff6a375356
chore: bump up Rust crate resvg to 0.44 (#111) 2024-09-28 10:12:51 +02:00
renovate[bot]
2ac81dd653
chore: bump up all non-major dependencies (#110)
* chore: bump up all non-major dependencies

* Update napi

* fix armv7 build

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: LongYinan <lynweklm@gmail.com>
2024-09-21 17:29:56 +08:00
renovate[bot]
79f4101ada
chore: bump up napi-rs to 3.0.0-alpha (#104) 2024-08-25 16:22:03 +08:00
renovate[bot]
0309279374
chore: bump up all non-major dependencies (#106)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-14 16:13:22 +08:00
LongYinan
479b1c02b6
ci: fix android cmake build (#107) 2024-08-14 15:54:13 +08:00
LongYinan
8c2575e95a
chore: upgrade deps (#103) 2024-07-16 10:48:05 +08:00
renovate[bot]
a1c0ced3b5
chore: bump up Rust crate fast_image_resize to v4 (#99)
* chore: bump up Rust crate fast_image_resize to v4

* Update code

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: LongYinan <lynweklm@gmail.com>
2024-05-14 06:40:10 +00:00
LongYinan
afc909fea5
ci: wasm32-wasi target rename (#97) 2024-05-13 15:35:01 +08:00
LongYinan
c505d043ca
chore(release): publish
- @napi-rs/image@1.9.2
2024-04-20 12:28:17 +08:00
Aura
63243c46c3
chore: use no-const-enum (#94) 2024-04-20 12:27:09 +08:00
renovate[bot]
9a711ea2e5
chore: bump up @napi-rs/wasm-runtime version to ^0.2.0 (#93)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-19 21:26:12 +08:00
renovate[bot]
dbddaf3bf0
chore: bump up all non-major dependencies (#91)
* chore: bump up all non-major dependencies

* fix image crate

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: LongYinan <lynweklm@gmail.com>
2024-04-18 17:58:10 +08:00
LongYinan
6ae9c06a58
chore(release): publish
- @napi-rs/image@1.9.1
2024-02-22 23:44:38 +08:00
LongYinan
304227ac2b
fix(image): wasm fallback logic in js-binding file (#88) 2024-02-22 23:43:38 +08:00
LongYinan
caeb47b4e0
chore(release): publish
- @napi-rs/image@1.9.0
2024-02-19 23:44:02 +08:00
LongYinan
5c7bb9c3ab
feat: upgrade resvg (#86)
* docs: update examples and site

* feat: upgrade resvg
2024-02-19 22:45:30 +08:00
LongYinan
503adf4cd8
docs: update examples and site (#85) 2024-02-19 22:45:21 +08:00
LongYinan
bba3bd3ae5
chore(release): publish
- @napi-rs/image@1.8.0
2024-02-14 12:02:40 +08:00
LongYinan
352e7adc55
feat: add wasm build (#81) 2024-02-14 09:29:36 +08:00
LongYinan
eceba75142
feat: upgrade dependencies (#73) 2024-02-07 17:02:35 +08:00
renovate[bot]
2eaff51e71
chore: bump up all non-major dependencies (#66)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-09 11:31:02 +08:00
LongYinan
f79ed56b4a
chore(release): publish
- @napi-rs/image@1.7.0
2023-09-27 11:27:08 +08:00
LongYinan
aa07979f6c
chore: upgrade dependencies (#64) 2023-09-27 10:34:57 +08:00
LongYinan
12e87c0842
fix: mozjpeg compile issue 2023-09-13 22:11:39 -07:00
renovate[bot]
dbf0380330
chore: bump up Rust crate mozjpeg-sys to v2 (#61)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-14 00:04:30 +00:00
LongYinan
70a168b505
feat: upgrade dependencies (#50) 2023-07-30 23:42:59 +08:00
LongYinan
b1afb10512
chore(release): publish
- @napi-rs/image@1.6.1
2023-03-12 20:33:17 +08:00
LongYinan
cb1cf270b4
style: clippy fix 2023-03-12 16:19:34 +08:00
LongYinan
68400a9707
perf(image): lazy load the Fontdb Database 2023-03-12 15:26:36 +08:00
LongYinan
f28270b750
chore(release): publish
- @napi-rs/image@1.6.0
2023-02-27 19:59:18 +08:00
Bryan Lee
21a50aaa65
feat(image): support Transformer from SVG (#44) 2023-02-27 19:56:53 +08:00