@@ -21,23 +21,28 @@ interface FormatOptions {
21
21
translateKeys ?: boolean ,
22
22
translateValues ?: boolean ,
23
23
reviveValues ?: boolean ,
24
+ parse ?: boolean , // XMP only
24
25
}
25
26
26
27
interface Options extends FormatOptions {
27
- // TIFF segment
28
+ // TIFF segment IFD blocks
28
29
tiff ?: FormatOptions | boolean ,
29
30
ifd0 ?: FormatOptions , // cannot be disabled.
30
31
ifd1 ?: FormatOptions | boolean ,
31
32
exif ?: FormatOptions | boolean ,
32
33
gps ?: FormatOptions | boolean ,
33
34
interop ?: FormatOptions | boolean ,
35
+ // notable properties in TIFF
36
+ makerNote ?: boolean ,
37
+ userComment ?: boolean ,
34
38
// Other segments
35
- jfif ?: FormatOptions | boolean ,
36
- iptc ?: FormatOptions | boolean ,
37
39
xmp ?: FormatOptions | boolean ,
38
40
icc ?: FormatOptions | boolean ,
39
- makerNote ?: boolean ,
40
- userComment ?: boolean ,
41
+ iptc ?: FormatOptions | boolean ,
42
+ // JPEG only segment
43
+ jfif ?: FormatOptions | boolean ,
44
+ // PNG only only segment
45
+ ihdr ?: FormatOptions | boolean ,
41
46
// other options
42
47
sanitize ?: boolean ,
43
48
mergeOutput ?: boolean ,
@@ -56,7 +61,7 @@ interface IRotation {
56
61
canvas : boolean ;
57
62
}
58
63
59
- export function parse ( data : Input , options ?: Options | Filter ) : Promise < any > ;
64
+ export function parse ( data : Input , options ?: Options | Filter | boolean ) : Promise < any > ;
60
65
export function thumbnail ( data : Input ) : Promise < Uint8Array | Buffer | undefined > ;
61
66
export function thumbnailUrl ( data : Input ) : Promise < string > ;
62
67
export function gps ( data : Input ) : Promise < GpsOutput > ;
0 commit comments