@thi.ng/pixel-analysis 1.1.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2025-07-27T10:14:07Z
3
+ - **Last updated**: 2025-07-29T09:14:04Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
@@ -11,6 +11,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
11
11
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
12
12
  and/or version bumps of transitive dependencies.
13
13
 
14
+ ### [1.1.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/pixel-analysis@1.1.1) (2025-07-27)
15
+
16
+ #### 🩹 Bug fixes
17
+
18
+ - update/fix weightedLuma result ([19d818c](https://github.com/thi-ng/umbrella/commit/19d818c))
19
+
14
20
  ## [1.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/pixel-analysis@1.1.0) (2025-07-27)
15
21
 
16
22
  #### 🚀 Features
package/README.md CHANGED
@@ -81,7 +81,7 @@ For Node.js REPL:
81
81
  const pa = await import("@thi.ng/pixel-analysis");
82
82
  ```
83
83
 
84
- Package sizes (brotli'd, pre-treeshake): ESM: 1.89 KB
84
+ Package sizes (brotli'd, pre-treeshake): ESM: 1.90 KB
85
85
 
86
86
  ## Dependencies
87
87
 
package/analyze-colors.js CHANGED
@@ -43,7 +43,7 @@ const analyzeColors = (img, opts) => {
43
43
  opts?.tempCoeffs
44
44
  );
45
45
  const lumaRangeImg = reduce(minMax(), imgGray.data);
46
- const weightedLuma = dot(derived.luma.range, colorAreas);
46
+ const weightedLuma = dot(derived.srgb.map(luminanceSrgb), colorAreas);
47
47
  const weightedChroma = dot(
48
48
  derived.oklch.map((x) => x[1]),
49
49
  colorAreas
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/pixel-analysis",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "Image color & feature analysis utilities",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -112,5 +112,5 @@
112
112
  "status": "beta",
113
113
  "year": 2024
114
114
  },
115
- "gitHead": "b02ec04e69664e649584f84dd419c39318dabee2\n"
115
+ "gitHead": "691c2a96134ee27d2c9c6cfbec34710bda347186\n"
116
116
  }