Skip to content

Commit

Permalink
prettier (whitespace diff)
Browse files Browse the repository at this point in the history
  • Loading branch information
mceachen committed Oct 6, 2024
1 parent 048e23e commit ed91863
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,30 @@

1. **Best-of-class cross-platform performance and reliability**.

This is the module that [PhotoStructure](https://photostructure.com) (and [500+](https://github.com/photostructure/exiftool-vendored.js/network/dependents) other projects) use for photo and video metadata reading and writing.
This is the module that [PhotoStructure](https://photostructure.com) (and [500+](https://github.com/photostructure/exiftool-vendored.js/network/dependents) other projects) use for photo and video metadata reading and writing.

Expect [an order of magnitude faster performance](#performance) than other Node.js ExifTool modules.
Expect [an order of magnitude faster performance](#performance) than other Node.js ExifTool modules.

1. Best-effort extraction of

- **dates** with [correct timezone offset encoding](#dates)
- **latitudes & longitudes** as floats (where negative values indicate west or south of the meridian)
- **dates** with [correct timezone offset encoding](#dates)
- **latitudes & longitudes** as floats (where negative values indicate west or south of the meridian)

1. Support for

- [reading tags](https://photostructure.github.io/exiftool-vendored.js/classes/ExifTool.html#read)
- extracting embedded binaries, like [thumbnail](https://photostructure.github.io/exiftool-vendored.js/classes/ExifTool.html#extractThumbnail) and [preview](https://photostructure.github.io/exiftool-vendored.js/classes/ExifTool.html#extractPreview) images
- [writing tags](https://photostructure.github.io/exiftool-vendored.js/classes/ExifTool.html#write)
- [rescuing metadata](https://photostructure.github.io/exiftool-vendored.js/classes/ExifTool.html#rewriteAllTags)
- [reading tags](https://photostructure.github.io/exiftool-vendored.js/classes/ExifTool.html#read)
- extracting embedded binaries, like [thumbnail](https://photostructure.github.io/exiftool-vendored.js/classes/ExifTool.html#extractThumbnail) and [preview](https://photostructure.github.io/exiftool-vendored.js/classes/ExifTool.html#extractPreview) images
- [writing tags](https://photostructure.github.io/exiftool-vendored.js/classes/ExifTool.html#write)
- [rescuing metadata](https://photostructure.github.io/exiftool-vendored.js/classes/ExifTool.html#rewriteAllTags)

1. **[Robust type definitions](#tags)** of the top 99.5% tags used by over 6,000
different camera makes and models (see an [example](https://photostructure.github.io/exiftool-vendored.js/interfaces/EXIFTags.html#CreateDate))
different camera makes and models (see an [example](https://photostructure.github.io/exiftool-vendored.js/interfaces/EXIFTags.html#CreateDate))

1. **Automated updates** to ExifTool ([as new versions come out
frequently](https://exiftool.org/history.html))
frequently](https://exiftool.org/history.html))

1. **Robust test coverage**, performed with on [macOS, Linux, and
Windows](https://github.com/photostructure/exiftool-vendored.js/actions?query=workflow%3A%22Node.js+CI%22)
Windows](https://github.com/photostructure/exiftool-vendored.js/actions?query=workflow%3A%22Node.js+CI%22)

## Installation

Expand Down
4 changes: 2 additions & 2 deletions src/Timezones.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,15 +160,15 @@ export function normalizeZone(
// Info.normalizeZone returns the system zone if the input is null or
// blank (!!!), but we want to return undefined instead:
if (blank(input)) return undefined

if (input instanceof Zone) {
return isZoneValid(input) ? input : undefined
}

// This test and short-circuit may not be necessary, but it's cheap and
// explicit:
if (isUTC(input)) return FixedOffsetZone.utcInstance

let z = input
if (typeof z === "string") {
z = z.replace(/^(?:Zulu|Z|GMT)(?:\b|$)/, "UTC")
Expand Down

0 comments on commit ed91863

Please sign in to comment.