# fakexif Strip the real metadata off an image, stamp on a decoy location, camera fingerprint and message, rename the file. Wraps `exiftool` + `imagemagick`. ```sh brew install exiftool imagemagick ~/.dotfiles/scripts/setup.sh --bin # symlink bin/* into ~/.local/bin ``` ## Default No flags = North Korea labour camp: ```sh fakexif photo.jpg # -> camp14-20260811-064311.jpg # GPS 39.6109 N, 126.0508 E # "cant dox me im in NKs labour camp" in every comment field # timestamp local to Pyongyang, filesystem dates faked too ``` Every part of that is overridable. ## Options | flag | does | |---|---| | `-c, --camp ` | decoy preset (default `camp14`) | | `-r, --random [cat]` | random preset, optionally from one category | | `-g, --coords ` | explicit signed decimal coords | | `-P, --place ` | override the place label | | `-a, --alt ` | GPS altitude, default 120 | | `-l, --list [cat]` | list presets | | `-m, --msg ` | message written to the comment fields | | `-C, --camera ` | fake camera fingerprint, `--cameras` to list | | `--artist`, `--copyright` | credit fields, default `nobody` | | `-d, --date ` | `YYYY:MM:DD HH:MM:SS`, default now in the decoy's zone | | `-t, --tag Tag=Value` | write any exiftool tag, repeatable, wins over presets | | `-n, --name ` | output basename | | `-k, --keep-name` | edit in place, keep the filename | | `-o, --out ` | output directory | | `-b, --backup` | keep a `.orig` copy of the input | | `-j, --jpeg` / `-p, --png` | force JPEG / keep PNG as PNG | | `-q, --quality <1-100>` | JPEG quality when converting, default 92 | | `-s, --strip` | scrub only, write no decoy | | `-A, --no-strip` | overlay the decoy on top of existing metadata | | `-S, --show` | dump metadata and exit | | `-N, --dry-run` | say what would happen | | `-Q, --quiet` | print output paths only, for piping | ## Preset categories `dprk` · `gulag` · `detention` · `zone` · `spook` · `nowhere` — 48 in total. - **dprk** — camps 14/15/16/18/22/25, Pyongyang, Ryugyong, Panmunjom - **gulag** — Kolyma, Vorkutlag, Norillag, Solovki, Perm-36, Belomorkanal, Butugychag, Karlag, ALZhIR, Steplag, Butovo, Lubyanka, Kremlin - **detention** — Guantanamo, Dabancheng, Alcatraz, Robben Island, ADX Florence - **zone** — Chernobyl, Pripyat, Fukushima, Bikini Atoll, Semipalatinsk - **spook** — Area 51, Pentagon, Langley, GCHQ, White House, Roswell - **nowhere** — Null Island, Point Nemo, Challenger Deep, both poles, McMurdo, Everest, Vatican, Loch Ness ## Examples ```sh fakexif -r gulag -C iphone15 *.jpg # random gulag, iPhone fingerprint fakexif -c area51 -m "nice try" pic.png fakexif -g 51.5074,-0.1278 -P "London" -t Rating=5 pic.jpg fakexif -s -k leak.jpg # scrub only, keep the name fakexif -c kolyma clip.mp4 # video gets QuickTime GPS atoms fakexif -Q -o out *.jpg | xargs -n1 open # quiet mode prints paths ``` ## Notes - **PNG has no native EXIF block.** PNG input converts to JPEG by default so the GPS is actually readable. `-p` keeps PNG and writes XMP only, which many viewers ignore. - **`-C` matters.** A file with no `Make`/`Model` reads as deliberately scrubbed. A coherent fake body (Apple + matching lens + plausible ISO) reads as an ordinary photo. - **Filesystem dates leak too.** `FileModifyDate` and `FileCreateDate` are set to match the faked capture time. `FileCreateDate` is macOS/Windows only. - **Most platforms strip EXIF on upload** (X, Instagram, Discord, Reddit) and re-encode. The decoy only survives if the raw file is sent directly. - Hemisphere refs are derived from the sign of the coordinate, so a western or southern preset can never disagree with its own `N/S/E/W` field. - Video (`mp4/mov/m4v`) also gets `QuickTime:GPSCoordinates` and `Keys:GPSCoordinates`. Tab completion for presets and cameras lives in `completions/_fakexif` and is parsed out of the script itself, so it never drifts from the preset table.