A simple tool that merges metadata from .json
files into photos and videos.
More info: Ente Metadata FAQ
-
Clone the repository:
git clone https://github.com/stowyh/ente-photos-tool.git
-
Navigate to the cloned repository and install the required packages:
npm install [email protected] fs-extra exiftool-vendored npm install --save-dev @types/fs-extra typescript tsx
Note: Due to compatibility issues, this script uses an outdated version of the
file-type
package.
-
Modify the source directory (if needed):
- The source directory can now be specified as a command-line argument.
-
Run the script:
npx tsx src/index.ts --source /path/to/source --output /path/to/output --error /path/to/error --tmp /path/to/tmp
- Replace
/path/to/source
,/path/to/output
,/path/to/error
, and/path/to/tmp
with the actual paths you want to use.
- Replace
- Allow passing directories as a parameter.
- Improve performance for large directories.