Socket
Socket
Sign inDemoInstall

exifr

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

exifr - npm Package Compare versions

Comparing version 6.1.1 to 6.2.0

15

CHANGELOG.md

@@ -5,2 +5,14 @@ # Changelog

## [6.2.0]
### Added
- **EXIF** segment (and thus GPS) extraction from **PNG files**. Only parses the modern `eXIf` chunks and not `zTXt`
- IIQ file support
### Fixed
- `Invalid input argument for BufferView` bug when parsing XMP from TIFF file if the XMP IFD0 tag was of type string (2) instead of byte array (1)
- `Closing file descriptor N on garbage collection` when reading unknown format.
## [6.1.1]

@@ -246,3 +258,4 @@

[Unreleased]: https://github.com/MikeKovarik/exifr/compare/v6.1.1...HEAD
[Unreleased]: https://github.com/MikeKovarik/exifr/compare/v6.2.0...HEAD
[6.2.0]: https://github.com/MikeKovarik/exifr/compare/v6.1.1...v6.2.0
[6.1.1]: https://github.com/MikeKovarik/exifr/compare/v6.1.0...v6.1.1

@@ -249,0 +262,0 @@ [6.1.0]: https://github.com/MikeKovarik/exifr/compare/v6.0.0...v6.1.0

2

package.json
{
"name": "exifr",
"version": "6.1.1",
"version": "6.2.0",
"description": "📷 The fastest and most versatile JavaScript EXIF reading library.",

@@ -5,0 +5,0 @@ "author": "Mike Kovarik",

@@ -41,3 +41,3 @@ <img src="https://raw.githubusercontent.com/MikeKovarik/exifr/master/logo/blue-small.png" width="160" alt="exifr">

* 🗃️ **Any input**: buffers, url, &lt;img&gt; tag, and more
* 📷 Files: **.jpg**, **.tif**, **.heic**, **.png**
* 📷 Files: **.jpg**, **.tif**, **.heic**, **.png**, **.iiq**
* 🔎 Segments: **TIFF** (EXIF, GPS, etc...), **XMP**, **ICC**, **IPTC**, JFIF, IHDR

@@ -77,11 +77,11 @@ * 📑 **Reads only first few bytes**

| Segments | JPEG | TIFF | HEIC | PNG |
| Segments | JPEG | TIFF / IIQ | HEIC | PNG |
|-|-|-|-|-|
| EXIF/TIFF | ✔ | ✔ | ✔ | ❌ |
| EXIF/TIFF, GPS | ✔ | ✔ | ✔ | ✔ |
| XMP | ✔ | ✔ | ❌ | ✔ |
| IPTC | ✔ | ✔ | ❌ | ❌ |
| IPTC | ✔ | ✔ | ❌ | 🟡 *(If it's a part of IHDR)* |
| ICC | ✔ | ✔ | ✔ | ✔ *(Node.js only, requires zlib)* |
| Thumbnail | ✔ | ❌ | ❌ | ❌ |
| JFIF *(JPEG header)* | ✔ | ❌ | ❌ | ❌ |
| IHDR *(PNG header)* | ❌ | ❌ | ❌ | ✔ |
| JFIF *(JPEG header)* | ✔ | ⚫ | ⚫ | ⚫ |
| IHDR *(PNG header)* | ⚫ | ⚫ | ⚫ | ✔ |

@@ -158,3 +158,3 @@

| chunked<br>file readers | BlobReader<br>UrlFetcher<br>FsReader<br>Base64Reader | BlobReader<br>UrlFetcher | BlobReader | none |
| file parsers | `*.jpg`<br>`*.heic`<br>`*.tif`<br>`*.png` | `*.jpg`<br>`*.heic` | `*.jpg` | none |
| file parsers | `*.jpg`<br>`*.heic`<br>`*.tif`/`*.iiq`<br>`*.png` | `*.jpg`<br>`*.heic` | `*.jpg` | none |
| segment<br>parsers | TIFF (EXIF)<br>IPTC<br>XMP<br>ICC<br>JFIF<br>IHDR | TIFF (EXIF)<br>XMP | TIFF (EXIF) | none |

@@ -354,3 +354,4 @@ | dictionaries | TIFF (+ less frequent tags)<br>IPTC<br>ICC<br>JFIF<br>IHDR | only TIFF keys<br>(IFD0, EXIF, GPS) | none | none |

let exr = new Exifr(options)
let output = await exr.read(file)
await exr.read(file)
let output = await exr.parse()
let buffer = await exr.extractThumbnail()

@@ -982,2 +983,3 @@ await exr.file?.close?.()

* **6.0.0** & **6.2.0** PNG support.
* **4.3.0** Package.json's `"main"` now points to UMD bundle for better compatibility.

@@ -984,0 +986,0 @@ * **4.1.0** Started bundling shims and polyfills with `legacy` builds. Suppporting IE10.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc