exifer
Table of Contents
Functions
- intel2Moto() : array<string|int, mixed>
- Converts from Intel to Motorola endien. Just reverses the bytes (assumes hex is passed in)
- lookup_tag() : string
- Looks up the name of the tag
- lookup_type() : string
- Looks up the datatype
- validSize() : type
- truncates unreasonable read data requests.
- unRational() : string
- processes a irrational number
- rational() : type
- processes a rational number
- formatData() : type
- Formats Data for the data type
- formatExposure() : type
- read_entry() : type
- Reads one standard IFD entry
- read_exif_data_raw() : int
- Pass in a file and this reads the EXIF data
- ConvertToFraction() : type
- Converts a floating point number into a simple fraction.
- get35mmEquivFocalLength() : int
- Calculates the 35mm-equivalent focal length from the reported sensor resolution
- lookup_Canon_tag() : string
- Looks up the name of the tag for the MakerNote (Depends on Manufacturer)
- formatCanonData() : type
- Formats Data for the data type
- parseCanon() : type
- Cannon Special data section Useful:
- lookup_Fujifilm_tag() : string
- Looks up the name of the tag for the MakerNote (Depends on Manufacturer)
- formatFujifilmData() : type
- Formats Data for the data type
- parseFujifilm() : mixed
- Fujifilm Special data section
- lookup_GPS_tag() : string
- Looks up the name of the tag
- formatGPSData() : type
- Formats Data for the data type
- parseGPS() : type
- GPS Special data section
- lookup_Nikon_tag() : string
- Looks up the name of the tag for the MakerNote (Depends on Manufacturer)
- formatNikonData() : mixed
- parseNikon() : mixed
- Nikon Special data section
- lookup_Olympus_tag() : string
- Looks up the name of the tag for the MakerNote (Depends on Manufacturer)
- formatOlympusData() : type
- Formats Data for the data type
- parseOlympus() : bool
- Olympus Special data section // - Updated by Zenphoto for new header tag in E-410/E-510/E-3 cameras. 2/24/2008
- lookup_Panasonic_tag() : string
- Looks up the name of the tag for the MakerNote (Depends on Manufacturer)
- formatPanasonicData() : type
- Formats Data for the data type
- parsePanasonic() : mixed
- Panasonic Special data section
- lookup_Sanyo_tag() : string
- Looks up the name of the tag for the MakerNote (Depends on Manufacturer)
- formatSanyoData() : type
- Formats Data for the data type
- parseSanyo() : mixed
- Sanyo Special data section
Functions
intel2Moto()
Converts from Intel to Motorola endien. Just reverses the bytes (assumes hex is passed in)
intel2Moto(type $intel) : array<string|int, mixed>
Parameters
- $intel : type
Tags
Return values
array<string|int, mixed>lookup_tag()
Looks up the name of the tag
lookup_tag(string $tag) : string
Parameters
- $tag : string
Return values
stringlookup_type()
Looks up the datatype
lookup_type(type &$type, type &$size) : string
Parameters
- $type : type
- $size : type
Return values
stringvalidSize()
truncates unreasonable read data requests.
validSize(type $bytesofdata) : type
Parameters
- $bytesofdata : type
Return values
typeunRational()
processes a irrational number
unRational(type $data, type $type, type $intel) : string
Parameters
- $data : type
- $type : type
- $intel : type
Return values
stringrational()
processes a rational number
rational(type $data, type $type, type $intel) : type
Parameters
- $data : type
- $type : type
- $intel : type
Return values
typeformatData()
Formats Data for the data type
formatData(type $type, type $tag, type $intel, type $data) : type
Parameters
- $type : type
- $tag : type
- $intel : type
- $data : type
Return values
typeformatExposure()
formatExposure(type $data) : type
Parameters
- $data : type
Return values
typeread_entry()
Reads one standard IFD entry
read_entry(type &$result, type $in, type $seek, type $intel, type $ifd_name, type $globalOffset) : type
Parameters
- $result : type
- $in : type
- $seek : type
- $intel : type
- $ifd_name : type
- $globalOffset : type
Return values
typeread_exif_data_raw()
Pass in a file and this reads the EXIF data
read_exif_data_raw(string $path, int $verbose) : int
Usefull resources
- http:// www.ba.wakwak.com/~tsuruzoh/Computer/Digicams/exif-e.html
- http:// www.w3.org/Graphics/JPEG/jfif.txt
- http:// exif.org/
- http:// www.ozhiker.com/electronics/pjmt/library/list_contents.php4
- http:// www.ozhiker.com/electronics/pjmt/jpeg_info/makernotes.html
- http:// pel.sourceforge.net/
- http:// us2.php.net/manual/en/function.exif-read-data.php
Parameters
- $path : string
- $verbose : int
Return values
intConvertToFraction()
Converts a floating point number into a simple fraction.
ConvertToFraction(type $v, type &$n, type &$d) : type
Parameters
- $v : type
- $n : type
- $d : type
Return values
typeget35mmEquivFocalLength()
Calculates the 35mm-equivalent focal length from the reported sensor resolution
get35mmEquivFocalLength(array<string|int, mixed> &$result) : int
Parameters
- $result : array<string|int, mixed>
Tags
Return values
intlookup_Canon_tag()
Looks up the name of the tag for the MakerNote (Depends on Manufacturer)
lookup_Canon_tag(type $tag) : string
Parameters
- $tag : type
Return values
stringformatCanonData()
Formats Data for the data type
formatCanonData(type $type, type $tag, type $intel, type $data, type $exif, type &$result) : type
Parameters
- $type : type
- $tag : type
- $intel : type
- $data : type
- $exif : type
- $result : type
Return values
typeparseCanon()
Cannon Special data section Useful:
parseCanon(type $block, type &$result, type $seek, type $globalOffset) : type
- http://www.burren.cx/david/canon.html
- http://www.burren.cx/david/canon.html
- http://www.ozhiker.com/electronics/pjmt/jpeg_info/canon_mn.html
Parameters
- $block : type
- $result : type
- $seek : type
- $globalOffset : type
Return values
typelookup_Fujifilm_tag()
Looks up the name of the tag for the MakerNote (Depends on Manufacturer)
lookup_Fujifilm_tag(type $tag) : string
Parameters
- $tag : type
Return values
stringformatFujifilmData()
Formats Data for the data type
formatFujifilmData(type $type, type $tag, type $intel, type $data) : type
Parameters
- $type : type
- $tag : type
- $intel : type
- $data : type
Return values
typeparseFujifilm()
Fujifilm Special data section
parseFujifilm(type $block, type &$result) : mixed
Parameters
- $block : type
- $result : type
lookup_GPS_tag()
Looks up the name of the tag
lookup_GPS_tag(type $tag) : string
Parameters
- $tag : type
Return values
stringformatGPSData()
Formats Data for the data type
formatGPSData(type $type, type $tag, type $intel, type $data) : type
Parameters
- $type : type
- $tag : type
- $intel : type
- $data : type
Return values
typeparseGPS()
GPS Special data section
parseGPS(type $block, type &$result, type $offset, type $seek, type $globalOffset) : type
Useful websites
-http://drewnoakes.com/code/exif/sampleOutput.html
- http://www.geosnapper.com
Parameters
- $block : type
- $result : type
- $offset : type
- $seek : type
- $globalOffset : type
Return values
typelookup_Nikon_tag()
Looks up the name of the tag for the MakerNote (Depends on Manufacturer)
lookup_Nikon_tag(type $tag, type $model) : string
Parameters
- $tag : type
- $model : type
Return values
stringformatNikonData()
formatNikonData(mixed $type, mixed $tag, mixed $intel, mixed $model, mixed $data) : mixed
Parameters
- $type : mixed
- $tag : mixed
- $intel : mixed
- $model : mixed
- $data : mixed
parseNikon()
Nikon Special data section
parseNikon(type $block, type &$result) : mixed
Parameters
- $block : type
- $result : type
lookup_Olympus_tag()
Looks up the name of the tag for the MakerNote (Depends on Manufacturer)
lookup_Olympus_tag(type $tag) : string
Parameters
- $tag : type
Return values
stringformatOlympusData()
Formats Data for the data type
formatOlympusData(type $type, type $tag, type $intel, type $data) : type
Parameters
- $type : type
- $tag : type
- $intel : type
- $data : type
Return values
typeparseOlympus()
Olympus Special data section // - Updated by Zenphoto for new header tag in E-410/E-510/E-3 cameras. 2/24/2008
parseOlympus(type $block, type &$result, type $seek, type $globalOffset) : bool
Parameters
- $block : type
- $result : type
- $seek : type
- $globalOffset : type
Return values
boollookup_Panasonic_tag()
Looks up the name of the tag for the MakerNote (Depends on Manufacturer)
lookup_Panasonic_tag(type $tag) : string
Parameters
- $tag : type
Return values
stringformatPanasonicData()
Formats Data for the data type
formatPanasonicData(type $type, type $tag, type $intel, type $data) : type
Parameters
- $type : type
- $tag : type
- $intel : type
- $data : type
Return values
typeparsePanasonic()
Panasonic Special data section
parsePanasonic(type $block, type &$result) : mixed
Parameters
- $block : type
- $result : type
lookup_Sanyo_tag()
Looks up the name of the tag for the MakerNote (Depends on Manufacturer)
lookup_Sanyo_tag(type $tag) : string
Parameters
- $tag : type
Return values
stringformatSanyoData()
Formats Data for the data type
formatSanyoData(type $type, type $tag, type $intel, type $data) : type
Parameters
- $type : type
- $tag : type
- $intel : type
- $data : type
Return values
typeparseSanyo()
Sanyo Special data section
parseSanyo(type $block, type &$result, type $seek, type $globalOffset) : mixed
Parameters
- $block : type
- $result : type
- $seek : type
- $globalOffset : type