Exif. js reads the image metadata, exif. js image metadata
Exif. js provides the Function Extension for JavaScript to read the original image data, such as the photo direction, camera device model, shooting time, ISO sensitivity, and GPS geographic location.
Online instance
Simple Example of instance Preview
Instance preview to obtain base64 encoded file data
Instance preview asynchronous acquisition of image data
How to load JavaScript files
- <Script src = "exif. js"> </script>
Copy to obtain EXIF data
EXIF.getData(document.getElementById('imgElement'), function(){
EXIF.getAllTags(this);
EXIF.getTag(this, 'Orientation');
});
Copy API method
Name |
Description |
EXIF. getData (img, callback) |
Obtain image data Compatible with browsers that do not yet support EXIF data to obtain metadata. |
EXIF. getTag (img, tag) |
Obtain an image data. |
EXIF. getAllTags (img) |
Obtains all the data of the image. The value is returned as an object. |
EXIF. pretty (img) |
Obtains all the data of the image. The value is returned as a string. |
EXIF ID
Name |
Description |
ExifVersion |
Exif version |
FlashPixVersion |
FlashPix version |
ColorSpace |
Color Gamut and Color Space |
PixelXDimension |
Effective Image Width |
PixelYDimension |
Effective Image Height |
ComponentsConfiguration |
Image Construction |
CompressedBitsPerPixel |
Color bit per pixel during compression |
MakerNote |
Information set by the manufacturer |
UserComment |
User comment |
RelatedSoundFile |
Associated sound file |
DateTimeOriginal |
Creation Time |
DateTimeDigitized |
Digital Creation Time |
SubsecTime |
Date and time (SEC) |
SubsecTimeOriginal |
Original date time (SEC) |
SubsecTimeDigitized |
Original date and time digitalization (seconds) |
ExposureTime |
Exposure time |
FNumber |
Optical circle Value |
ExposureProgram |
Exposure Program |
Spectralsensiti.pdf |
Spectral Sensitivity |
ISOSpeedRatings |
Sensitivity |
OECF |
Photoelectric conversion function |
ShutterSpeedValue |
Shutter speed |
ApertureValue |
Lens Aperture |
BrightnessValue |
Brightness |
ExposureBiasValue |
Exposure Compensation |
MaxApertureValue |
Maximum aperture |
SubjectDistance |
Distance |
MeteringMode |
Metering method |
Lightsource |
Light Source |
Flash |
Flashlight |
SubjectArea |
Subject Region |
FocalLength |
Focal Length |
FlashEnergy |
Flashlight strength |
SpatialFrequencyResponse |
Spatial Frequency Response |
FocalPlaneXResolution |
Focal Length plane x axis resolution |
FocalPlaneYResolution |
Focal Length plane Y axis resolution |
FocalPlaneResolutionUnit |
Focal Length plane Resolution Unit |
SubjectLocation |
Subject location |
ExposureIndex |
Exposure index |
SensingMethod |
Image Sensor Type |
FileSource |
Source File |
SceneType |
Scenario type (1 = direct shooting) |
CFAPattern |
CFA Mode |
CustomRendered |
Custom Image Processing |
ExposureMode |
Exposure mode |
WhiteBalance |
White Balance (1 = automatic, 2 = manual) |
DigitalZoomRation |
Digital zoom |
FocalLengthIn35mmFilm |
35mm film focal length |
SceneCaptureType |
Scene Shooting type |
GainControl |
Scenario Control |
Contrast |
Contrast |
Saturation |
Saturation |
Sharpness |
Sharpness |
DeviceSettingDescription |
Device Setting Description |
SubjectDistanceRange |
Subject distance range |
InteroperabilityIFDPointer |
|
ImageUniqueID |
Unique image ID |
Tiff Problems
Name |
Description |
ImageWidth |
Image Width |
ImageHeight |
Image Height |
BitsPerSample |
Bit Sampling Rate |
Compression |
Compression Method |
PhotometricInterpretation |
Pixel Synthesis |
Orientation |
Shooting direction |
SamplesPerPixel |
Number of shards |
PlanarConfiguration |
Data Arrangement |
YCbCrSubSampling |
Color-phase sampling ratio |
YCbCrPositioning |
Color phase Configuration |
XResolution |
X-direction resolution |
YResolution |
Y-direction resolution |
ResolutionUnit |
Resolution Unit |
StripOffsets |
Image Data Location |
RowsPerStrip |
Number of rows per band |
StripByteCounts |
Bits per zip |
JPEGInterchangeFormat |
Jpeg soi offset |
JPEGInterchangeFormatLength |
JPEG bits |
TransferFunction |
Transfer Function |
WhitePoint |
White Color |
PrimaryChromaticities |
Main Color |
YCbCrCoefficients |
Color Space conversion matrix Coefficient |
ReferenceBlackWhite |
Black/white reference value |
DateTime |
Date and Time |
ImageDescription |
Image Description and Source |
Make |
Producer |
Model |
Model |
Software |
Software |
Artist |
Author |
Copyright |
Copyright information |
GPS Problems
Name |
Description |
GPSVersionID |
GPS version |
GPSLatitudeRef |
North-south latitude |
GPSLatitude |
Latitude |
GPSLongitudeRef |
Things Sutra |
Gpslongpolling |
Longitude |
GPSAltitudeRef |
Altitude reference value |
GPSAltitude |
Altitude |
GPSTimeStamp |
GPS Timestamp |
GPSSatellites |
Measurement Satellite |
GPSStatus |
Receiver status |
GPSMeasureMode |
Measurement Mode |
GPSDOP |
Measurement Accuracy |
GPSSpeedRef |
Speed Unit |
GPSSpeed |
GPS receiver speed |
GPSTrackRef |
Reference |
GPSTrack |
Moving position |
Gpsimgdireref ref |
Image Orientation reference |
GPSImgDirection |
Image Orientation |
GPSMapDatum |
Geographic measurement data |
GPSDestLatitudeRef |
Target latitude reference |
GPSDestLatitude |
Target latitude |
GPSDestLongitudeRef |
Target longitude reference |
Gpsdestlong.pdf |
Target longitude |
GPSDestBearingRef |
Target location reference |
GPSDestBearing |
Target Location |
GPSDestDistanceRef |
Target distance reference |
GPSDestDistance |
Target Distance |
GPSProcessingMethod |
GPS processing method name |
GPSAreaInformation |
GPS zone function variable name |
GPSDateStamp |
GPS Date |
GPSDifferential |
GPS correction |
Download