This project is a utility to update the EXIF data of JPEG images based on their filenames. It uses the Piexifjs library to manipulate EXIF data.
- Extracts EXIF data from JPEG files.
- Updates the
DateTimeOriginal
andDateTimeDigitized
EXIF fields based on the filename. - Supports two filename formats for extracting dates:
YYYYMMDD_HHMMSS
MMDDYYHHMM
- Node.js
-
Clone the repository:
git clone <repository-url> cd JPEG-Filename-Date-Stamper
-
Install the required dependencies:
npm install
-
Ensure the following interfaces are available in the
./Interfaces/
directory:EXIF.js
FS.js
Path.js
Piexif.js
-
Place your JPEG images in the
JPEG-Filename-Date-Stamper/images/
directory. -
Run the script:
node <script-filename>.js
Reads the binary data from a JPEG file.
Extracts the EXIF data from a JPEG file.
Writes binary data to a JPEG file.
Splits an array into smaller chunks of the specified size.
Generates a new timestamp from the filename.
Updates the EXIF data of a JPEG file with a new timestamp.
The main
function processes all JPEG files in the specified folder, updating their EXIF data based on their filenames.
- Implement a way to select a folder to process.
- Implement a GUI for a more user-friendly interaction with the program.
- Implement a way to select a date format.
- The script currently supports only specific filename formats for extracting dates. More formats might need to be added based on user needs.