imagescript 3.13.0 → 3.13.1
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/README.md +6 -6
- package/dist/metadata.d.ts +1 -1
- package/dist/metadata.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<h1 align="center">
|
|
2
2
|
<picture>
|
|
3
|
-
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/
|
|
4
|
-
<img alt="ImageScript: Pure TypeScript image processing that runs everywhere" src="https://raw.githubusercontent.com/
|
|
3
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/imagescript/ImageScript/master/media/wordmark-tagline-dark.svg">
|
|
4
|
+
<img alt="ImageScript: Pure TypeScript image processing that runs everywhere" src="https://raw.githubusercontent.com/imagescript/ImageScript/master/media/wordmark-tagline.svg" width="640">
|
|
5
5
|
</picture>
|
|
6
6
|
</h1>
|
|
7
7
|
|
|
8
8
|
[](https://discord.gg/8hPrwAH)
|
|
9
9
|
[](https://imagescript.dev/)
|
|
10
|
-
[](https://github.com/
|
|
10
|
+
[](https://github.com/imagescript/ImageScript)
|
|
11
11
|
[](https://www.npmjs.com/package/imagescript)
|
|
12
12
|
|
|
13
13
|
---
|
|
@@ -36,9 +36,9 @@ await writeFile('output.png', await image.encode());
|
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
Coordinates start at `(0, 0)`, the top left pixel. For a bigger example, see the
|
|
39
|
-
[script that generates this image](https://github.com/
|
|
39
|
+
[script that generates this image](https://github.com/imagescript/ImageScript/blob/master/tests/readme.js):
|
|
40
40
|
|
|
41
|
-
[](https://github.com/imagescript/ImageScript/blob/master/tests/readme.js)
|
|
42
42
|
|
|
43
43
|
---
|
|
44
44
|
|
|
@@ -76,7 +76,7 @@ P3, Adobe RGB, ...) are converted to sRGB when decoding, so images look the way
|
|
|
76
76
|
[hueShift](https://imagescript.dev/classes/Image.html#hueshift), ...
|
|
77
77
|
|
|
78
78
|
The [documentation](https://imagescript.dev/) covers the full API. When upgrading from an older major version,
|
|
79
|
-
see the [changelog](https://github.com/
|
|
79
|
+
see the [changelog](https://github.com/imagescript/ImageScript/blob/master/CHANGELOG.md). [bench/](bench/README.md)
|
|
80
80
|
compares ImageScript's speed and file sizes with Jimp, sharp and other libraries.
|
|
81
81
|
|
|
82
82
|
---
|
package/dist/metadata.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export interface Metadata {
|
|
|
22
22
|
copyright?: string;
|
|
23
23
|
/** The image's creation time. Default: now */
|
|
24
24
|
creationTime?: string | number | Date;
|
|
25
|
-
/** The software used to create the image. Default: `'
|
|
25
|
+
/** The software used to create the image. Default: `'ImageScript vX.X.X'`, `''` leaves it out */
|
|
26
26
|
software?: string;
|
|
27
27
|
/** A disclaimer for the image */
|
|
28
28
|
disclaimer?: string;
|
package/dist/metadata.js
CHANGED
|
@@ -9,7 +9,7 @@ export function resolveMetadata(metadata = {}) {
|
|
|
9
9
|
throw new RangeError('Invalid creation time');
|
|
10
10
|
const resolved = { creationTime: time };
|
|
11
11
|
for (const key of TEXT_FIELDS) {
|
|
12
|
-
const value = key === 'software' && software === undefined ? `
|
|
12
|
+
const value = key === 'software' && software === undefined ? `ImageScript v${VERSION}` : metadata?.[key];
|
|
13
13
|
if (value)
|
|
14
14
|
resolved[key] = String(value);
|
|
15
15
|
}
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '3.13.
|
|
1
|
+
export const VERSION = '3.13.1';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "imagescript",
|
|
3
|
-
"version": "3.13.
|
|
3
|
+
"version": "3.13.1",
|
|
4
4
|
"description": "Pure TypeScript image processing that runs everywhere",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"repository": {
|
|
35
35
|
"type": "git",
|
|
36
|
-
"url": "git+https://github.com/
|
|
36
|
+
"url": "git+https://github.com/imagescript/ImageScript.git"
|
|
37
37
|
},
|
|
38
38
|
"keywords": [
|
|
39
39
|
"image",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"author": "Mathis Mensing <mathis@matmen.dev>",
|
|
86
86
|
"license": "(AGPL-3.0-or-later OR MIT)",
|
|
87
87
|
"bugs": {
|
|
88
|
-
"url": "https://github.com/
|
|
88
|
+
"url": "https://github.com/imagescript/ImageScript/issues"
|
|
89
89
|
},
|
|
90
90
|
"homepage": "https://imagescript.dev/",
|
|
91
91
|
"engines": {
|