Exif. js reads the image metadata, exif. js image metadata

Source: Internet
Author: User
Tags color gamut

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.

  • Note:
  • EXIF data mainly comes from photos taken and is mostly used for mobile development and PC. This plug-in is compatible with mainstream browsers and is not supported by ie10.

  • Github address

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
  1. <Script src = "exif. js"> </script>
Copy to obtain EXIF data
  1. EXIF.getData(document.getElementById('imgElement'), function(){ 
  2.   EXIF.getAllTags(this); 
  3.   EXIF.getTag(this, 'Orientation'); 
  4. }); 
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

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.