Install the complete package with local command reference and every published mode.
install exifexifA camera or image processor may omit
exif <file> [options]exif <file>show
exif <file> -t [dst] [-f]extract the embedded thumbnail
-fallow replacement when extracting a thumbnail
-ishow a compact file, image and camera summary
-gshow GPS coordinates and a map URL
-jsonshow complete
Use -t [dst] extracts only a thumbnail already embedded in the image; -f allows replacement of the destination and is valid only with -t.
The PHP
Run the prepared examples directly on the page. Their results are prebuilt and shown in the browser; no terminal command is executed on the server.
Install the current compatible version. Choose Base for the complete feature set or Minimum for the reduced package; use upgrade to update a module that is already installed.
Base and Minimum are two packages of the same current module release, not separate command versions.
Install the complete package with local command reference and every published mode.
install exifInstall the reduced package. Local reference is omitted;
install exif -mInstall exactly this published version.
install exif -v 1.2.4Ask upgrade to check compatibility and replace the installed block only when needed.
upgrade exifRemove the extension block while leaving the core and unrelated modules intact.
install exif -uExamples are copyable command lines, not actions executed by this website. Review paths, permissions and destructive flags before running them on a real project.
exif images/photo.jpg -iFile sandbox/images/photo.jpg
Size 885 B
MIME image/jpeg
Dimensions 40x30
Camera Example Camera Sandbox 1
Date 2026:11:01 12:00:00
Orientation 1
GPS 12.0541667, -77.0750000
Thumbnail -exif images/photo.jpg -gLatitude 12.0541667
Longitude -77.0750000
Map https://maps.google.com/?q=12.0541667,-77.0750000exif images/photo.jpg[FILE]
FileName photo.jpg
FileDateTime 1793563170
FileSize 885
FileType 2
MimeType image/jpeg
SectionsFound ANY_TAG, IFD0, GPS
[COMPUTED]
html width="40" height="30"
Height 30
Width 40
IsColor 1
ByteOrderMotorola 1
[IFD0]
Make Example Camera
Model Sandbox 1
Orientation 1
DateTime 2026:11:01 12:00:00
GPS_IFD_Pointer 120
[GPS]
GPSLatitudeRef N
GPSLatitude ["12/1","3/1","15/1"]
GPSLongitudeRef W
GPSLongitude ["77/1","4/1","30/1"]exif images/photo.jpg -json{
"FILE": {
"FileName": "photo.jpg",
"FileDateTime": 1793563170,
"FileSize": 885,
"FileType": 2,
"MimeType": "image/jpeg",
"SectionsFound": "ANY_TAG, IFD0, GPS"
},
"COMPUTED": {
"html": "width=\"40\" height=\"30\"",
"Height": 30,
"Width": 40,
"IsColor": 1,
"ByteOrderMotorola": 1
},
"IFD0": {
"Make": "Example Camera",
"Model": "Sandbox 1",
"Orientation": 1,
"DateTime": "2026:11:01 12:00:00",
"GPS_IFD_Pointer": 120
},
"GPS": {
"GPSLatitudeRef": "N",
"GPSLatitude": [
"12/1",
"3/1",
"15/1"
],
"GPSLongitudeRef": "W",
"GPSLongitude": [
"77/1",
"4/1",
"30/1"
]
}
}exif images/photo.jpg -tEmbedded thumbnail not foundexif images/photo.jpg -t tmp/preview.jpg -fEmbedded thumbnail not foundexif images/photo.jpg -f-f requires -texif images/photo.jpg -i -gChoose one EXIF output modeexif images/plain.jpg -iFile sandbox/images/plain.jpg
Size 631 B
MIME image/jpeg
Dimensions 12x8
Thumbnail -exif images/plain.jpg -gGPS data not foundexif config/app.xmlNot an image fileexif images/missing.jpgImage file not foundexif images/photo.jpg -unknown?sandbox/images/photo.jpgThe example uses a file or directory from the protected /sandbox/ documentation workspace.
[binary file: photo.jpg]Non-image files are rejected clearly. GPS coordinates require valid references and ranges; a thumbnail cannot overwrite its source image.