@enslo/sd-metadata 2.1.1 → 2.2.0
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 +25 -0
- package/README.ja.md +7 -3
- package/README.md +8 -4
- package/dist/index.d.ts +4 -2
- package/dist/index.global.js +6 -6
- package/dist/index.js +308 -35
- package/dist/index.js.map +1 -1
- package/docs/types.ja.md +7 -4
- package/docs/types.md +8 -5
- package/package.json +3 -3
package/docs/types.ja.md
CHANGED
|
@@ -147,7 +147,7 @@ type GenerationMetadata =
|
|
|
147
147
|
|
|
148
148
|
| メタデータ型 | `software` 値 |
|
|
149
149
|
| ------------- | ----------------- |
|
|
150
|
-
| `StandardMetadata` | `'sd-webui'` \| `'sd-next'` \| `'forge'` \| `'forge-classic'` \| `'forge-neo'` \| `'reforge'` \| `'easy-reforge'` \| `'invokeai'` \| `'civitai'` \| `'hf-space'` \| `'easydiffusion'` \| `'fooocus'` \| `'ruined-fooocus'` |
|
|
150
|
+
| `StandardMetadata` | `'sd-webui'` \| `'sd-next'` \| `'forge'` \| `'forge-classic'` \| `'forge-neo'` \| `'reforge'` \| `'easy-reforge'` \| `'invokeai'` \| `'civitai'` \| `'hf-space'` \| `'easydiffusion'` \| `'fooocus'` \| `'ruined-fooocus'` \| `'draw-things'` |
|
|
151
151
|
| `NovelAIMetadata` | `'novelai'` |
|
|
152
152
|
| `ComfyUIMetadata` | `'comfyui'` \| `'tensorart'` \| `'stability-matrix'` \| `'swarmui'` |
|
|
153
153
|
|
|
@@ -195,7 +195,8 @@ type GenerationSoftware =
|
|
|
195
195
|
| 'hf-space'
|
|
196
196
|
| 'easydiffusion'
|
|
197
197
|
| 'fooocus'
|
|
198
|
-
| 'ruined-fooocus'
|
|
198
|
+
| 'ruined-fooocus'
|
|
199
|
+
| 'draw-things';
|
|
199
200
|
```
|
|
200
201
|
|
|
201
202
|
**例:**
|
|
@@ -361,7 +362,8 @@ export interface StandardMetadata extends BaseMetadata {
|
|
|
361
362
|
| 'hf-space'
|
|
362
363
|
| 'easydiffusion'
|
|
363
364
|
| 'fooocus'
|
|
364
|
-
| 'ruined-fooocus'
|
|
365
|
+
| 'ruined-fooocus'
|
|
366
|
+
| 'draw-things';
|
|
365
367
|
}
|
|
366
368
|
```
|
|
367
369
|
|
|
@@ -788,7 +790,8 @@ export type MetadataSegmentSource =
|
|
|
788
790
|
| { type: 'exifUserComment' }
|
|
789
791
|
| { type: 'exifImageDescription'; prefix?: string }
|
|
790
792
|
| { type: 'exifMake'; prefix?: string }
|
|
791
|
-
| { type: 'jpegCom' }
|
|
793
|
+
| { type: 'jpegCom' }
|
|
794
|
+
| { type: 'xmpPacket' };
|
|
792
795
|
```
|
|
793
796
|
|
|
794
797
|
正確なラウンドトリップのために、JPEG/WebPファイル内のメタデータの出所を追跡します。
|
package/docs/types.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Type Documentation
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
🌐 **[日本語版はこちら](./types.ja.md)**
|
|
4
4
|
|
|
5
5
|
Complete type reference for `@enslo/sd-metadata`.
|
|
6
6
|
|
|
@@ -147,7 +147,7 @@ type GenerationMetadata =
|
|
|
147
147
|
|
|
148
148
|
| Metadata Type | `software` values |
|
|
149
149
|
| ------------- | ----------------- |
|
|
150
|
-
| `StandardMetadata` | `'sd-webui'` \| `'sd-next'` \| `'forge'` \| `'forge-classic'` \| `'forge-neo'` \| `'reforge'` \| `'easy-reforge'` \| `'invokeai'` \| `'civitai'` \| `'hf-space'` \| `'easydiffusion'` \| `'fooocus'` \| `'ruined-fooocus'` |
|
|
150
|
+
| `StandardMetadata` | `'sd-webui'` \| `'sd-next'` \| `'forge'` \| `'forge-classic'` \| `'forge-neo'` \| `'reforge'` \| `'easy-reforge'` \| `'invokeai'` \| `'civitai'` \| `'hf-space'` \| `'easydiffusion'` \| `'fooocus'` \| `'ruined-fooocus'` \| `'draw-things'` |
|
|
151
151
|
| `NovelAIMetadata` | `'novelai'` |
|
|
152
152
|
| `ComfyUIMetadata` | `'comfyui'` \| `'tensorart'` \| `'stability-matrix'` \| `'swarmui'` |
|
|
153
153
|
|
|
@@ -195,7 +195,8 @@ type GenerationSoftware =
|
|
|
195
195
|
| 'hf-space'
|
|
196
196
|
| 'easydiffusion'
|
|
197
197
|
| 'fooocus'
|
|
198
|
-
| 'ruined-fooocus'
|
|
198
|
+
| 'ruined-fooocus'
|
|
199
|
+
| 'draw-things';
|
|
199
200
|
```
|
|
200
201
|
|
|
201
202
|
**Example:**
|
|
@@ -361,7 +362,8 @@ export interface StandardMetadata extends BaseMetadata {
|
|
|
361
362
|
| 'hf-space'
|
|
362
363
|
| 'easydiffusion'
|
|
363
364
|
| 'fooocus'
|
|
364
|
-
| 'ruined-fooocus'
|
|
365
|
+
| 'ruined-fooocus'
|
|
366
|
+
| 'draw-things';
|
|
365
367
|
}
|
|
366
368
|
```
|
|
367
369
|
|
|
@@ -788,7 +790,8 @@ export type MetadataSegmentSource =
|
|
|
788
790
|
| { type: 'exifUserComment' }
|
|
789
791
|
| { type: 'exifImageDescription'; prefix?: string }
|
|
790
792
|
| { type: 'exifMake'; prefix?: string }
|
|
791
|
-
| { type: 'jpegCom' }
|
|
793
|
+
| { type: 'jpegCom' }
|
|
794
|
+
| { type: 'xmpPacket' };
|
|
792
795
|
```
|
|
793
796
|
|
|
794
797
|
Tracks where the metadata came from in JPEG/WebP files for accurate round-tripping.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enslo/sd-metadata",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "Read and write AI-generated image metadata",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
},
|
|
54
54
|
"homepage": "https://sd-metadata.pages.dev",
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@biomejs/biome": "^2.4.
|
|
57
|
-
"@types/node": "^25.
|
|
56
|
+
"@biomejs/biome": "^2.4.4",
|
|
57
|
+
"@types/node": "^25.3.1",
|
|
58
58
|
"@vitest/coverage-v8": "^4.0.18",
|
|
59
59
|
"tsup": "^8.5.1",
|
|
60
60
|
"typescript": "^5.9.3",
|