MetaFix corrects wrong or missing dates on hundreds of photos and videos at once. Works offline. Sends no data.
Contents: What it does · Privacy · Download · How to use · For developers
Photos and videos from a phone, a cloud service or an old backup often have wrong, missing or mixed-up dates. Your photo library then puts them in the wrong place. MetaFix writes the correct date into each file, so every photo lands in the right month.
- Set date writes one exact date and time to every file you choose.
- Copy field copies a correct date from one field in each file into its other date fields.
- Shift moves each date by years, months, days, hours and minutes. You can mix directions, for example 1 day later and 2 hours earlier.
The main button always previews first. The current and new dates show side by side, and only the parts that change are highlighted. Then the button names exactly which files it will change.
The Read from column shows which field each date was read from. Dates that exist only on the file system are flagged. Filter by a field to show and select exactly those files.
Before each change, MetaFix copies the original file into a BACKUPS folder beside it, with its original name. Undo puts back the last batch, with the original filenames and, on Windows, the original created dates.
MetaFix can rename each file to start with its new date, for example 2019-06-14_18-30-00_photo.jpg. Files that share a date get (1), (2).
- Drag files or folders onto the window.
- MetaFix follows your system's light or dark appearance.
- Images and video are not re-encoded. MetaFix changes only the date information.
- Windows only: MetaFix can also set the Date created and Date modified that File Explorer shows.
- Background tools do not open terminal windows on Windows.
- MetaFix remembers where ExifTool and FFmpeg are, so you set them once.
- MetaFix works offline. All editing happens on your computer.
- Your files never leave your computer.
- No accounts, no tracking, no analytics, no crash reports.
- Settings are kept in a
datafolder beside the app. Backup records are kept indata/backup-records/. Move the app, and its settings move with it. - MetaFix connects to the internet in one case only. When you select Check for updates, it asks GitHub (api.github.com) for the latest version number. It sends only the app name,
MetaFix. It sends nothing about you or your files, and keeps nothing. - If a newer version exists, selecting it opens the GitHub release page in your browser. MetaFix downloads nothing itself.
MetaFix runs on:
- Windows 10 or 11 (x64). This is the most tested version.
- macOS on Apple Silicon Macs. There is no version for Intel Macs.
- Linux x64: Ubuntu 22.04, or a compatible newer desktop. It needs the standard system desktop libraries.
Note: The macOS and Linux versions still need more testing with real photo and video edits.
- Open the latest release.
- Download the file for your computer:
- Windows:
MetaFix-v<version>-windows-x64.zip - macOS:
MetaFix-v<version>-macos-arm64.zip - Linux:
MetaFix-v<version>-linux-x64.tar.gz
- Windows:
- Extract the download into a folder you can write to. MetaFix saves its settings in that folder.
- Open
MetaFix.exe(Windows),MetaFix.app(macOS) orMetaFix(Linux).
MetaFix uses ExifTool, a free tool, to read and write dates. It is not included.
- Download ExifTool from exiftool.org.
- Open MetaFix and select Choose ExifTool.
- Select the ExifTool program file. MetaFix remembers it.
For AVI videos you also need FFmpeg and ffprobe, also free:
- Download FFmpeg from ffmpeg.org. It includes ffprobe.
- In MetaFix, select Tools, then select the FFmpeg program file.
- Keep ffprobe in the same folder as FFmpeg.
Note
On macOS and Linux, the program file is named exiftool (or ffmpeg), with no extension. The picker opens in the folder where the program is installed, for example /opt/homebrew/bin (Homebrew on Apple Silicon) or /usr/local/bin (the ExifTool installer). If the program is somewhere else, press Cmd + Shift + G in the macOS picker and type its folder.
MetaFix isn't notarised by Apple, so macOS shows a warning the first time you open it. This is expected and doesn't mean the app is harmful.
- Open MetaFix and click Done on the warning.
- Open System Settings → Privacy & Security, scroll down to the message saying "MetaFix" was blocked, and click Open Anyway.
- Enter your password, then click Open on the next prompt. You only need to do this once.
If you use Terminal
You can run this instead:
xattr -dr com.apple.quarantine "/Applications/MetaFix.app"
| Type | File types |
|---|---|
| Photos | .jpg .jpeg .png .heic .webp .tiff |
| Videos | .mov .mp4 .m4v .avi .mkv .3gp .gif |
- Drag photos, videos or folders onto the window. Or select Add files or Add folder.
- To include the folders inside a folder, tick Include subfolders before you select Add folder.
Note: A folder that you drag onto the window adds only the files directly inside it. Use Add folder to include subfolders.
Each file shows its current date in Current date, and the field it came from in Read from. MetaFix reads the first date it finds, in this order:
DateTimeOriginal → ContentCreateDate → CreateDate → MediaCreateDate
→ TrackCreateDate → TrackModifyDate → ModifyDate → FileCreateDate → FileModifyDate
FileCreateDate and FileModifyDate come from the file system, not from the photo or video itself.
- Set date. Pick one date and time. MetaFix writes it to every file. Use it when you know the correct date, for example for scanned photos. The picker starts at the current local time.
- Copy field. Pick the field to copy from in Copy from. MetaFix copies that date into the other fields of the same file. Use it when one field has the correct date. The list picks the most common field in your files and shows how many files have each field.
- Shift. Enter values under Move by. Positive values move dates later. Negative values move them earlier. You can mix them:
1day with-2hours moves a date 1 day later and 2 hours earlier. The sentence under the values confirms the result. Use it for a camera clock or time zone that was set wrong.
- To change some files only, tick them. Select a row or its checkbox. The header checkbox ticks every row shown.
- With nothing ticked, MetaFix changes all loaded files, even files hidden by a filter. The main button says "all", and the summary line counts any hidden files.
- To show only files whose date comes from one field, choose it in the All sources list. Then select Select all shown to tick exactly those files.
The toolbar shows how many files are ticked.
The Write to list shows every date field MetaFix can write. All are ticked. Untick any field you want to leave alone.
| Field | Used by |
|---|---|
DateTimeOriginal |
Most photo apps, Lightroom, Immich, Google Photos |
CreateDate |
Photos and videos in general |
ModifyDate |
General last-changed date |
MediaCreateDate |
MOV and MP4 videos |
TrackCreateDate |
The separate tracks inside a video |
TrackModifyDate |
Last-changed date of each track |
Under Also:
- Update file modified date also writes
FileModifyDate. This is the Date modified that File Explorer shows. - Update file created date (Windows) also sets the Date created and Date modified that File Explorer shows. It shows on Windows only.
- Rename files with the new date renames each file to start with its new date, for example
2019-06-15_14-07-32_photo.jpg. Files that share a date get(1),(2). - Overwrite the old name works only with Rename files with the new date. The name becomes only the date, for example
2019-06-15_14-07-32.jpg. Undo still puts back the original name.
- Select the main button at the top right. It says Preview and names the files it covers.
- Read the New date column. Only the parts of a date that will change are highlighted.
Nothing is written yet. "Same date" means the date shown already matches, but other fields can still be written. If a date is not valid or a file has no date to read, the batch does not start, and the row shows the reason. If you change a setting or the ticked files, the old preview clears and you must preview again.
- Check the main button. It now says Apply to and names the files it will change.
- Select it to write the new dates.
Note: The button stays locked for 1 second after a preview, so a double-click cannot write by mistake.
The summary line above the table shows how many files were changed. Errors show in their rows. MetaFix copies and checks a backup of each file before it changes it. Files are renamed only after their dates are written. A failed rename or created-date change shows separately from the date change.
Undo puts back the files from the last batch that changed files:
- It puts back the original filenames, and on Windows the original created dates.
- It does not replace another file that now has the old name.
- It does not restore a file or backup that was changed after the batch.
- If a file cannot be put back, you can select Undo again to retry.
Caution: Undo remembers only the last batch, and only until you close MetaFix.
Backups shows the list of backups MetaFix made, and asks before it deletes them. Keep backups is the default.
Caution: If you delete the backups of the last batch, you can no longer undo it.
- MetaFix deletes only backups it made and checked. Other files in a
BACKUPSfolder stay. - Backups made by versions before backup tracking are never deleted. Check them and delete them yourself.
- Keep the
BACKUPSfolders until you have checked the results. - Each
BACKUPSfolder sits beside your files. It holds only copies of your original files, with their original names. A second backup of the same name gets(1),(2). - MetaFix keeps a record of each backup in the app's
data/backup-records/folder. Keep that folder, so Backups can still find them after you restart MetaFix. - To put back a file by hand, copy it out of
BACKUPS. This does not reset its Windows created date. - MetaFix changes only date information. AVI videos are rewritten with FFmpeg without re-encoding the video. No tool can promise that every file stays perfect, and MetaFix does not compare the pictures or video after editing.
- Select Check for updates beside the version number, next to the MetaFix name.
- If a newer version exists, it shows in gold. Select it to open the release page in your browser.
Building the app yourself or changing it? Everything you need is below.
Run from source
You need Python 3.10 or later. Release builds use Python 3.12.
git clone https://github.com/TariqMK/MetaFix.git
cd MetaFix
pip install -r requirements.txt
python MetaFix.pyRuntime dependencies (requirements.txt): flask, pywebview[qt], python-dateutil.
A source run shows the version v0.0.0+dev.
Run the tests
node --test tests/*.test.cjs
python -m unittest discover -s tests -p "test_*.py"
python scripts/check_app.pyCurrent suite: 62 Python tests and 31 Node tests (93 total).
- The Python safety tests use temporary dummy files and mocked external tools.
- The JavaScript tests cover version allocation, release retries, and UI state and error recovery.
- The build-path tests mock native packaging commands.
check_app.pychecks imports and Flask routes without opening a window or changing media.python MetaFix.py --self-testchecks the app's files and Qt WebEngine load, then printsMetaFix v<version>. It exits 1 and names the problem if anything is missing. The build script runs it on every packaged build.
End-to-end check against a running app:
- Start MetaFix and set ExifTool.
- Find the local port MetaFix listens on (see the comment at the top of
scripts/check_e2e.py). - Run
python scripts/check_e2e.py http://127.0.0.1:<port> <sample.jpg> <new empty folder>.
The check loads copies of the sample JPEG, then reads, previews, applies, undoes, shifts one selected file and deletes the backups. It checks file contents before and after each step. It only works in a new or empty folder.
Manual checks so far:
- Real-tool checks passed for generated JPEG, MP4 and AVI samples: write, read-back, copy preview, rename and byte-exact undo.
- Real JPEG and AVI checks passed with flat backups, hidden subprocesses and Windows timestamp updates.
- The interface passed in a browser with real ExifTool on JPEG and PNG copies: preview, mixed-direction shift, rename and byte-exact undo. Undo's created-date restore passed with and without renaming.
- On 26 November 2026, packaged builds passed the end-to-end check with real ExifTool on macOS (Apple Silicon), Linux (Ubuntu 24.04 ARM64, built from source) and Windows 11 (x64 build under ARM64 emulation). On Windows, the created-date option, rename and undo also passed, and the build ran when unpacked from a download-marked ZIP.
- The window's look, drag and drop, and clicking through the file pickers have not been checked yet.
- The latest workflow changes still need a fresh native workflow run.
How it works
flowchart LR
UI["Interface<br>templates + static"] --> Routes["Flask routes<br>routes.py"]
Routes --> Ops["Preview, apply, undo, cleanup<br>operations.py"]
Ops --> Backups["backups.py<br>BACKUPS/ + data/backup-records/"]
Ops --> Exif["exiftool.py<br>ExifTool"]
Ops --> FF["ffmpeg.py<br>FFmpeg (AVI)"]
Ops --> Dates["dates.py<br>PowerShell (Windows)"]
Desktop["desktop.py<br>pywebview window, drag and drop"] --> Routes
The interface calls Flask routes, which pass batch work to operations.py. Metadata adapters run ExifTool or FFmpeg. Native window integration lives in desktop.py. Flask finds templates and static files relative to the package.
Project structure
MetaFix/
|-- MetaFix.py Desktop launcher
|-- metafix/
| |-- __init__.py Flask factory and build version
| |-- desktop.py Window, server, drag-and-drop
| |-- routes.py HTTP endpoints and file dialogs
| |-- updates.py Manual update check
| |-- config.py Configuration and session state
| |-- fields.py Supported formats and fields
| |-- dates.py Date shifts and Windows timestamps
| |-- metadata.py Metadata reads and source selection
| |-- exiftool.py ExifTool adapter
| |-- ffmpeg.py AVI adapter
| |-- operations.py Preview, apply, undo, cleanup
| |-- backups.py Flat backup creation and recovery
| |-- processes.py Silent background tools
| |-- session.py Operation serialization
| |-- files.py File collection and renaming
| |-- templates/index.html Interface markup
| `-- static/
| |-- css/app.css Styles
| `-- js/app.js Interface logic
|-- .github/workflows/release.yml
|-- scripts/ Build, versioning, self-test and end-to-end checks
|-- tests/ Safety, UI, release, version, build checks
|-- packaging/requirements.txt Release build dependencies
|-- docs/ GitHub Pages product page
| `-- assets/ README banner, screenshots and app icons (SVG masters)
|-- data/ Generated app data (ignored)
| |-- config.json Saved executable paths
| `-- backup-records/ Ownership and integrity records
|-- requirements.txt Source runtime dependencies
`-- README.md
Tech stack
| Component | Library |
|---|---|
| GUI shell | pywebview (Qt backend) |
| Web server | Flask |
| Metadata | ExifTool (subprocess) |
| AVI dates | FFmpeg stream copy (subprocess) |
| Date maths | python-dateutil |
| Packaging | PyInstaller |
| UI fonts | System UI and monospace fonts (no network needed) |
App data
data/config.jsonis stored relative to the app folder, not the working directory. In a packaged build it lives beside the executable indata/(insideMetaFix.app/Contents/MacOS/on macOS).- The
data/folder is created when settings are first saved, and is ignored by Git. - Loaded files and the last batch stay in memory only.
- Ignored
Meta/holds local handover notes and legacy files.venv/andMetaFix.batare local environment and launcher files. Build output and Python caches are ignored too.
Backups
- Tracking records in
data/backup-records/identify the original, the resulting filename and the exact backup. - Content hashes protect against restoring a changed backup or overwriting a file edited after apply.
- Cleanup never recursively deletes the shared
BACKUPS/folder. - Nested backups from older versions stay usable for tracked cleanup. They are not moved. Untracked backups from before ownership tracking are never adopted or deleted.
Timestamp policy
- Naive input dates are local wall-clock times.
- Offset-aware source dates are converted to local time before editing. Fractional seconds are accepted; edits use whole seconds.
- ExifTool reads and writes use
QuickTimeUTC=1, so integer QuickTime fields convert consistently. - Calendar shifts operate on local wall-clock time, with conversion at the target date.
Windows file dates
- Update file created date (Windows) uses PowerShell to set
CreationTimeandLastWriteTimeafter a successful metadata write. It is hidden and off on macOS and Linux. - PowerShell failures are reported per file. The metadata change stays undoable.
- Update file modified date controls ExifTool's
FileModifyDatewrite for non-AVI files.
Other notes
- The desktop server binds a free loopback port before the window opens, so separate app instances do not share a port or file selection.
- ExifTool, FFmpeg, ffprobe and PowerShell run without opening terminal windows on Windows. Their output and errors are still captured for status messages.
- Batch progress is an activity indicator, not a per-file percentage.
- Preview and apply share the same source-date calculation, including AVI files.
- Controls are disabled while a batch runs, and conflicting backend requests are rejected.
- The required preview is enforced in the interface only. The backend does not check for a preview.
Update the screenshots
docs/assets/make_screenshots.py retakes the read-from, rename-applied and backups screenshots in dark and light. It runs the real interface with made-up sample files and a stand-in for ExifTool, so no real files or settings are used.
uv run --with playwright playwright install chromium
uv run --python 3.12 --with flask --with python-dateutil --with playwright python docs/assets/make_screenshots.pyThe first command is needed once only. The other screenshots (set-date-preview-dark, shift-preview-dark, shift-preview-light) were made before this script and are not retaken by it.
Creating a Release
- In GitHub, open Actions > Build and release > Run workflow.
- Choose the branch.
- Choose Visibility:
draft(default) orpublic(published GitHub release). - Choose Bump:
major,minororpatch(default). - Select Run workflow.
Note: The workflow must be on the default branch for the Run workflow button to appear. It runs manually only. No extra secrets are needed; it uses GitHub's built-in token.
Builds
- The workflow builds Windows x64, macOS Apple Silicon (arm64, no Intel build) and Linux x64 on native runners.
- All three builds must succeed before any release is created.
- Downloads are ZIP files for Windows and macOS, and a tar.gz file for Linux. ExifTool and FFmpeg are not bundled.
- The macOS app is unsigned and not notarised. Linux builds target Ubuntu 22.04 or compatible newer desktops.
- After packaging, the build script runs the executable with
--self-test. It checks Flask resources, the Qt backend and the embedded version before archiving. On macOS and Linux it also checks the printed version line. This is not an interactive GUI or media test. - The macOS build shows its version in Get Info. The build script writes it into
Info.plist, then signs the app again.
Version numbers
- The next version comes from the highest semantic version across all paginated release records (including drafts) and Git tags. With no history, the start is
0.0.0. - Example: if
v1.2.3is public andv1.3.0is a draft, patch givesv1.3.1, minor givesv1.4.0and major givesv2.0.0. - Prerelease tags also reserve their base version. Unrelated tag names are ignored.
- Releases are tagged
vMAJOR.MINOR.PATCHat the exact commit that was built. - The version is embedded in each build as
metafix.__version__and shows beside the MetaFix name. Source checkouts report0.0.0+dev. - The workflow never commits to your branch. Tags and release records are the version history. Runs are serial, so no version is allocated twice.
Drafts and reruns
- Each release starts as a draft, receives all three archives, and is published only if
publicwas selected. - An upload failure leaves a draft for inspection.
- Rerunning the same workflow reuses its version and checks the tag's commit. Matching assets are skipped; missing assets are uploaded. Published assets are never replaced.
- A new workflow run counts the existing version and advances again. To publish an existing draft without a new version, use Releases > Edit > Publish release.
Local build
Use Python 3.12:
python -m pip install -r packaging/requirements.txt
python scripts/build.py --version 1.0.0The tracked build script packages the current package layout. The legacy spec in ignored Meta/ is not used.


