162 Commits

Author SHA1 Message Date
LongYinan
71fae353ff
chore(release): publish
- @napi-rs/image@1.12.0
@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]
30e0442724
chore: bump up node version to v24 (#166)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-08 09:32:53 +08:00
renovate[bot]
14fc6209d1
chore: bump up electron version to v39 (#164)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-08 09:32:34 +08:00
LongYinan
5f43381bbd
build: disable avx512 for Linux musl x86_64 (#169) 2025-12-07 23:09:35 +08:00
renovate[bot]
29676c400e
chore: bump up lerna version to v9 (#157)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-07 18:14:22 +08:00
renovate[bot]
70913d2ed4
chore: bump up actions/checkout action to v6 (#167)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-07 18:14:00 +08:00
renovate[bot]
233d441225
chore: bump up actions/setup-node action to v6 (#160)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-07 18:13:38 +08:00
renovate[bot]
f6f10817c1
chore: bump up GitHub Artifact Actions (#163)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-07 18:13:13 +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
z0
d8e7a31643
docs: fix typo in /docs/index.mdx (#161) 2025-10-26 23:24:13 +08:00
Steven
1f9a84bd69
fix(website): fix links to unoptimized images (#156)
Updated image paths to use relative URLs for optimization examples.
2025-09-13 13:48:19 +08:00
renovate[bot]
b08d0108ba
chore: bump up electron version to v38 (#154) 2025-09-11 09:01:57 +08: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
renovate[bot]
ab7bff6929
chore: bump up Yarn to v4.9.4 (#150)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-27 21:39:23 +08:00
renovate[bot]
bf8220f93f
chore: bump up Yarn to v4.9.3 (#149) 2025-08-21 11:21:45 +08:00
LongYinan
06948ae832
fix: webp build (#147) 2025-08-17 08:18:02 -07:00
renovate[bot]
31d2d4deae
chore: bump up actions/checkout action to v5 (#146)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-15 18:33:34 +08:00
LongYinan
b956adede5
ci: npm trusted publisher (#145) 2025-08-09 22:57:04 +08:00
LongYinan
a1ebba9d43
chore(release): publish
- @napi-rs/image@1.11.2
@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
renovate[bot]
dec462379b
chore: bump up actions/download-artifact action to v5 (#144)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-09 14:08:44 +08:00
LongYinan
39ed38a133
chore(release): publish
- @napi-rs/image@1.11.1
@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
2b42e4063c
ci: upgrade wasi-sdk to v25 (#139)
* ci: upgrade wasi-sdk to v25

* fix
2025-07-10 16:01:44 +08:00
LongYinan
b59adf7830
chore(release): publish
- @napi-rs/image@1.11.0
@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
@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]
cc953eac62
chore: bump up Yarn to v4.6.0 (#121) 2024-12-30 00:20:58 +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]
aa22355fa6
chore: bump up @types/node version to v22 (#118)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-29 10:42:59 +08:00
renovate[bot]
f5f50c91f0
chore: bump up npm-run-all2 version to v7 (#117)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-24 07:54:06 +00:00
renovate[bot]
2bb9053fc1
chore: bump up next version to v15 (#116)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-24 15:39:27 +08:00
renovate[bot]
9c3ce3313b
chore: bump up Yarn to v4.5.1 (#115) 2024-10-20 14:53:44 +08:00
renovate[bot]
67893a6ff2
chore: bump up electron version to v33 (#114)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-15 16:47:58 +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]
f1eee17f28
chore: bump up electron version to v32 (#108) 2024-08-25 16:22:18 +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]
94b2a962e0
chore: bump up Yarn to v4.4.1 (#109)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-24 22:29:52 +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
0004c8d084
docs: disable next.js image optmization (#105) 2024-07-16 07:42:05 +00:00
LongYinan
8c2575e95a
chore: upgrade deps (#103) 2024-07-16 10:48:05 +08:00