exifreader 4.19.0 → 4.19.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 CHANGED
@@ -3,8 +3,8 @@ ExifReader
3
3
 
4
4
  ExifReader is a JavaScript library that parses image files and extracts the
5
5
  metadata. It can also extract an embedded thumbnail. It can be used either in a
6
- browser or from Node. Supports JPEG, TIFF, PNG, HEIC, and WebP files with Exif,
7
- IPTC, XMP, ICC, and MPF metadata (depending on file type).
6
+ browser or from Node. Supports JPEG, TIFF, PNG, HEIC, WebP, and GIF files with
7
+ Exif, IPTC, XMP, ICC, and MPF metadata (depending on file type).
8
8
 
9
9
  ExifReader is highly and easily configurable and the resulting bundle can be as
10
10
  small as **~4 KiB** (gzipped) if you're only interested in a few tags (e.g. date
package/exif-reader.d.ts CHANGED
@@ -97,7 +97,34 @@ interface RiffTags {
97
97
  'ImageHeight'?: {
98
98
  value: number,
99
99
  description: string
100
- }
100
+ },
101
+ }
102
+
103
+ interface GifTags {
104
+ 'GIF Version': {
105
+ value: '87a' | '89a',
106
+ description: '87a' | '89a'
107
+ },
108
+ 'Image Width'?: {
109
+ value: number,
110
+ description: string
111
+ },
112
+ 'Image Height'?: {
113
+ value: number,
114
+ description: string
115
+ },
116
+ 'Global Color Map'?: {
117
+ value: 0 | 1,
118
+ description: 'No' | 'Yes'
119
+ },
120
+ 'Bits Per Pixel'?: {
121
+ value: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8,
122
+ description: string
123
+ },
124
+ 'Color Resolution Depth'?: {
125
+ value: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8,
126
+ description: string
127
+ },
101
128
  }
102
129
 
103
130
  interface NumberFileTag {
@@ -175,6 +202,7 @@ interface ExpandedTags {
175
202
  xmp?: { _raw: string } & XmpTags,
176
203
  icc?: IccTags,
177
204
  riff?: RiffTags,
205
+ gif?: GifTags,
178
206
  Thumbnail?: ThumbnailTags,
179
207
  gps?: GpsTags
180
208
  photoshop?: PhotoshopTags;
@@ -484,7 +512,7 @@ interface IccTags {
484
512
  [name: string]: ValueTag;
485
513
  }
486
514
 
487
- export type Tags = XmpTags & IccTags & PngTags & RiffTags & PhotoshopTags & {
515
+ export type Tags = XmpTags & IccTags & PngTags & RiffTags & GifTags & PhotoshopTags & {
488
516
  'Thumbnail'?: ThumbnailTags;
489
517
  'Images'?: MPFImageTags[],
490
518
  } & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exifreader",
3
- "version": "4.19.0",
3
+ "version": "4.19.1",
4
4
  "description": "Library that parses Exif metadata in images.",
5
5
  "author": "Mattias Wallander <mattias@wallander.eu>",
6
6
  "repository": {