仿 Dress 的照片投稿仓库, 适配自建 Gitea 平台 git.xhmcl.com: - README / GUIDE (PR 教程) / CONTRIBUTING / Q&A / EXIF / PARTIAL_CLONE (中英双语) - A-Z + # 首字母目录结构 - .gitea: PR 模板、维护者名单、7 个纯 bash + API 的 Actions 工作流 (可选功能) Co-Authored-By: Claude Code <noreply@anthropic.com>
3.6 KiB
📋 What is EXIF?
Introduction
EXIF (Exchangeable Image File Format) is a "digital dossier" embedded in image files. Every time you take a photo with a phone or camera, the device automatically records information about the shot — including where you took it, what device you used, and when you took it.
Besides EXIF itself, images may also carry metadata formats such as IPTC and XMP, which can store location and personal information as well.
For submission criteria and common metadata cleaning methods, see Contribution Preparation.
⚠️ If the platform has Gitea Actions enabled, the "highly sensitive" fields below are detected automatically by the repository workflows and must be fixed. If Actions is not enabled, no automatic blocking happens — please inspect your images yourself before submitting.
🔴 Highly Sensitive
These fields are detected automatically (when Actions is enabled) and must be removed.
| Field | Description |
|---|---|
GPS:GPSLatitude / GPS:GPSLongitude |
Exact geographic coordinates, locatable to meter level |
GPS:GPSAltitude |
Altitude |
GPS:GPSDateStamp + GPS:GPSTimeStamp |
Exact capture time (combined with coordinates can reconstruct movements) |
GPS:GPSSpeed / GPS:GPSTrack / GPS:GPSImgDirection |
Movement speed and direction |
IPTC:City / IPTC:Country / IPTC:Sub-location / IPTC:Province-State |
Textual shooting address |
XMP-photoshop:City / XMP-photoshop:Country / XMP-photoshop:State |
Address written by Photoshop/Lightroom |
XMP-iptcCore:CreatorWorkEmail |
Creator's work email |
XMP-iptcCore:CreatorWorkTelephone |
Creator's phone number |
XMP-iptcCore:CreatorCity / CreatorCountry / CreatorPostalCode |
Creator's contact address |
🟠 Somewhat Sensitive
These fields won't cause a PR rejection, but please be aware — serial numbers in particular can track the same device across photos.
| Field | Description |
|---|---|
EXIF:BodySerialNumber / EXIF:CameraSerialNumber |
Device serial number, trackable across images |
EXIF:LensSerialNumber |
Lens serial number |
EXIF:Artist / XMP-dc:Creator |
Photographer/creator name |
MakerNotes:FaceName / XMP-mwg-rs:PersonInImageName |
Names bound by camera face recognition |
🟡 Low Sensitivity
These have little privacy impact and are not blocked; keeping them is acceptable.
| Field | Description |
|---|---|
EXIF:DateTimeOriginal |
Capture time (low risk without location) |
EXIF:Make / EXIF:Model |
Camera/phone brand and model |
EXIF:Software |
Post-processing software |
EXIF:FNumber / EXIF:ExposureTime / EXIF:ISO |
Aperture, shutter speed, ISO and other photography parameters |
EXIF:Copyright |
Copyright notice |
🔍 How to Self-Check
Use the following commands before submitting to see whether high-sensitivity information remains:
# Install exiftool
# macOS: brew install exiftool
# Ubuntu: sudo apt install libimage-exiftool-perl
# Windows: https://exiftool.org/
# Check a single image
exiftool -GPS:all -IPTC:City -IPTC:Country-PrimaryLocationName \
-XMP-photoshop:City -XMP-iptcCore:CreatorWorkEmail your_photo.jpg
# If the command above prints nothing, all high-sensitivity fields are cleaned.
Remove All Metadata Completely
# Delete all EXIF/XMP/IPTC (the most thorough)
exiftool -all= -o cleaned_photo.jpg your_photo.jpg