@thi.ng/imago 1.0.6 → 1.0.8
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 +1 -1
- package/api.d.ts +2 -2
- package/package.json +17 -17
- package/path.d.ts +14 -14
package/CHANGELOG.md
CHANGED
package/api.d.ts
CHANGED
|
@@ -307,8 +307,8 @@ export interface OutputSpec extends ProcSpec {
|
|
|
307
307
|
* {@link OutputSpec.path} will be ignored and no file will be written.
|
|
308
308
|
*
|
|
309
309
|
* @remarks
|
|
310
|
-
* The value given is the blurhash detail setting in the [1,9] range
|
|
311
|
-
* default is 4), possibly given separately for X/Y axes.
|
|
310
|
+
* The value given is the blurhash detail setting in the `[1,9]` range
|
|
311
|
+
* (usual default is 4), possibly given separately for X/Y axes.
|
|
312
312
|
*
|
|
313
313
|
* Important: Ensure the image has already been downsized to ~50-500 pixels.
|
|
314
314
|
* Larger images are causing unnecessary & long processing...
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/imago",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "JSON & API-based declarative and extensible image processing trees/pipelines",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -39,24 +39,24 @@
|
|
|
39
39
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@thi.ng/api": "^8.11.
|
|
43
|
-
"@thi.ng/blurhash": "^1.0.
|
|
44
|
-
"@thi.ng/checks": "^3.6.
|
|
45
|
-
"@thi.ng/date": "^2.7.
|
|
46
|
-
"@thi.ng/defmulti": "^3.0.
|
|
47
|
-
"@thi.ng/errors": "^2.5.
|
|
48
|
-
"@thi.ng/file-io": "^2.1.
|
|
49
|
-
"@thi.ng/logger": "^3.
|
|
50
|
-
"@thi.ng/object-utils": "^1.1.
|
|
51
|
-
"@thi.ng/pixel": "^7.3.
|
|
52
|
-
"@thi.ng/pixel-dither": "^1.1.
|
|
53
|
-
"@thi.ng/prefixes": "^2.3.
|
|
42
|
+
"@thi.ng/api": "^8.11.20",
|
|
43
|
+
"@thi.ng/blurhash": "^1.0.6",
|
|
44
|
+
"@thi.ng/checks": "^3.6.23",
|
|
45
|
+
"@thi.ng/date": "^2.7.43",
|
|
46
|
+
"@thi.ng/defmulti": "^3.0.60",
|
|
47
|
+
"@thi.ng/errors": "^2.5.26",
|
|
48
|
+
"@thi.ng/file-io": "^2.1.27",
|
|
49
|
+
"@thi.ng/logger": "^3.1.1",
|
|
50
|
+
"@thi.ng/object-utils": "^1.1.14",
|
|
51
|
+
"@thi.ng/pixel": "^7.3.16",
|
|
52
|
+
"@thi.ng/pixel-dither": "^1.1.156",
|
|
53
|
+
"@thi.ng/prefixes": "^2.3.37",
|
|
54
54
|
"sharp": "^0.33.5"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@thi.ng/vectors": "^7.12.
|
|
58
|
-
"esbuild": "^0.
|
|
59
|
-
"typedoc": "^0.27.
|
|
57
|
+
"@thi.ng/vectors": "^7.12.20",
|
|
58
|
+
"esbuild": "^0.25.0",
|
|
59
|
+
"typedoc": "^0.27.7",
|
|
60
60
|
"typescript": "^5.7.3"
|
|
61
61
|
},
|
|
62
62
|
"keywords": [
|
|
@@ -188,5 +188,5 @@
|
|
|
188
188
|
"status": "alpha",
|
|
189
189
|
"year": 2024
|
|
190
190
|
},
|
|
191
|
-
"gitHead": "
|
|
191
|
+
"gitHead": "9a0b33253fef092aaf301decf6ecd54317874d4c\n"
|
|
192
192
|
}
|
package/path.d.ts
CHANGED
|
@@ -8,20 +8,20 @@ import type { ImgProcCtx, OutputSpec } from "./api.js";
|
|
|
8
8
|
* the {@link ImgProcOpts.pathParts} options provided to {@link processImage}.
|
|
9
9
|
* Any others will remain as is. Custom IDs take precedence over built-in ones.
|
|
10
10
|
*
|
|
11
|
-
* - name
|
|
12
|
-
* - sha1/224/256/384/512
|
|
13
|
-
* - w
|
|
14
|
-
* - h
|
|
15
|
-
* - aspect
|
|
16
|
-
* - date
|
|
17
|
-
* - time
|
|
18
|
-
* - year
|
|
19
|
-
* - month
|
|
20
|
-
* - week
|
|
21
|
-
* - day
|
|
22
|
-
* - hour
|
|
23
|
-
* - minute
|
|
24
|
-
* - second
|
|
11
|
+
* - `name`: original base filename (w/o ext)
|
|
12
|
+
* - `sha1/224/256/384/512`: truncated hash of output
|
|
13
|
+
* - `w`: current width
|
|
14
|
+
* - `h`: current height
|
|
15
|
+
* - `aspect`: "p" (portrait), "l" (landscape) or "sq" (square)
|
|
16
|
+
* - `date`: yyyyMMdd
|
|
17
|
+
* - `time`: HHmmss
|
|
18
|
+
* - `year`: 4-digit year
|
|
19
|
+
* - `month`: 2-digit month
|
|
20
|
+
* - `week`: 2-digit week
|
|
21
|
+
* - `day`: 2-digit day in month
|
|
22
|
+
* - `hour`: 2-digit hour (24h system)
|
|
23
|
+
* - `minute`: 2-digit minute
|
|
24
|
+
* - `second`: 2-digit second
|
|
25
25
|
*
|
|
26
26
|
* All date/time related values will be in UTC.
|
|
27
27
|
*
|