Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorpepian
    • CommentTimeJul 4th 2007
     
    some idea to surpass this problem?
    • CommentAuthorpepian
    • CommentTimeJul 4th 2007
     
    Fatal error: Call to undefined function read_exif_data_raw() in http://www.linkperu.com/admin/plog-admin-functions.php on line 68

    $data; } //================================================================================================ //================================================================================================ // Reads one standard IFD entry //================================================================================================ //================================================================================================ function read_entry(&$result,$in,$seek,$intel,$ifd_name,$globalOffset) { //2 byte tag $tag = bin2hex(fread( $in, 2 )); if($intel==1) $tag = intel2Moto($tag); $tag_name = lookup_tag($tag); //2 byte datatype $type = bin2hex(fread( $in, 2 )); if($intel==1) $type = intel2Moto($type); lookup_type($type,$size); //4 byte number of elements $count = bin2hex(fread( $in, 4 )); if($intel==1) $count = intel2Moto($count); $bytesofdata = $size*hexdec($count); //4 byte value or pointer to value if larger than 4 bytes $value = fread( $in, 4 ); if($bytesofdata<=4) { //if datatype is 4 bytes or less, its the value $data = $value; } else { //otherwise its a pointer to the value, so lets go get it $value = bin2hex($value); if($intel==1) $value = intel2Moto($value); $v = fseek($seek,$globalOffset+hexdec($value)); //offsets are from TIFF header which is 12 bytes from the start of the file if($v==0) { $data = fread($seek, $bytesofdata); } else if($v==-1) { $result['Errors'] = $result['Errors']++; } } if($tag_name=="MakerNote") { //if its a maker tag, we need to parse this specially $make = $result['IFD0']['Make']; if($result['VerboseOutput']==1) { $result[$ifd_name]['MakerNote']['RawData'] = $data; } if($make=="NIKON\0") { parseNikon($data,$result); $result[$ifd_name]['KnownMaker'] = 1; } else if(eregi("OLYMPUS",$make)) { parseOlympus($data,$result,$seek,$globalOffset); $result[$ifd_name]['KnownMaker'] = 1; } else if(eregi("Canon",$make)) { parseCanon($data,$result,$seek,$globalOffset); $result[$ifd_name]['KnownMaker'] = 1; } else if(eregi("FUJIFILM",$make)) { parseFujifilm($data,$result); $result[$ifd_name]['KnownMaker'] = 1; } else if(eregi("SANYO",$make)) { parseSanyo($data,$result,$seek,$globalOffset); $result[$ifd_name]['KnownMaker'] = 1; } else { $result[$ifd_name]['KnownMaker'] = 0; } } else if($tag_name=="GPSInfoOffset") { $formated_data = formatData($type,$tag,$intel,$data); $result[$ifd_name]['GPSInfo'] = $formated_data; parseGPS($data,$result,$formated_data,$seek,$globalOffset); } else { //Format the data depending on the type and tag $formated_data = formatData($type,$tag,$intel,$data); $result[$ifd_name][$tag_name] = $formated_data; if($result['VerboseOutput']==1) { if($type=="URATIONAL" || $type=="SRATIONAL" || $type=="USHORT" || $type=="SSHORT" || $type=="ULONG" || $type=="SLONG" || $type=="FLOAT" || $type=="DOUBLE") { $data = bin2hex($data); if($intel==1) $data = intel2Moto($data); } $result[$ifd_name][$tag_name."_Verbose"]['RawData'] = $data; $result[$ifd_name][$tag_name."_Verbose"]['Type'] = $type; $result[$ifd_name][$tag_name."_Verbose"]['Bytes'] = $bytesofdata; } } } //================================================================================================ //================================================================================================ // Pass in a file and this reads the EXIF data // // Usefull resources // http://www.ba.wakwak.com/~tsuruzoh/Computer/Digicams/exif-e.html // http://www.w3.org/Graphics/JPEG/jfif.txt // http://exif.org/ //================================================================================================ //================================================================================================ function read_exif_data_raw($path,$verbose = 0) { if($path=='' || $path=='none') return; $in = fopen($path, "rb"); //the b is for windows machines to open in binary mode $seek = fopen($path, "rb"); //
    •  
      CommentAuthorTony
    • CommentTimeJul 4th 2007 edited
     
    computer say's nahhhh......................