File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @tidaltheory/lens ' : patch
3
+ ---
4
+
5
+ Fix recording of metadata
Original file line number Diff line number Diff line change @@ -12,7 +12,12 @@ import sharp from 'sharp'
12
12
import { IptcParser } from 'ts-node-iptc'
13
13
import { PackageJson } from 'type-fest'
14
14
15
- import { ImageMeta , ImageRecord , ImageThumbnails } from '../types/types.js'
15
+ import {
16
+ ImageMeta ,
17
+ ImageRecord ,
18
+ ImageThumbnails ,
19
+ LensConfig ,
20
+ } from '../types/types.js'
16
21
17
22
import { loadConfig } from './lib/context.js'
18
23
import { getDominantPalette } from './lib/dominant.js'
@@ -52,7 +57,7 @@ prog.command('add <src>')
52
57
)
53
58
. action ( async ( source : string , options : Options ) => {
54
59
let spinner = ora ( ) . start ( )
55
- let config = await loadConfig ( )
60
+ let config : LensConfig = await loadConfig ( )
56
61
let useFilenameDirectory =
57
62
options . useFilenameDirectory || config . useFilenameDirectory
58
63
@@ -159,7 +164,7 @@ prog.command('add <src>')
159
164
}
160
165
}
161
166
162
- let entryMeta : ImageMeta
167
+ let entryMeta : ImageMeta = { }
163
168
if ( config . includeMetadata ) {
164
169
entryMeta . title = iptcData . object_name
165
170
entryMeta . caption = iptcData . caption
You can’t perform that action at this time.
0 commit comments