set_include_path( "$_SERVER[DOCUMENT_ROOT]/inc/" .PATH_SEPARATOR."$_SERVER[DOCUMENT_ROOT]/inc/jpeg_metadata/" .PATH_SEPARATOR.get_include_path() ); include $Toolkit_Dir . 'JPEG.php'; include $Toolkit_Dir . 'JFIF.php'; include $Toolkit_Dir . 'PictureInfo.php'; include $Toolkit_Dir . 'XMP.php'; include $Toolkit_Dir . 'Photoshop_IRB.php'; include $Toolkit_Dir . 'Photoshop_File_Info.php'; include $Toolkit_Dir . 'EXIF.php'; function assocData($data){ $ret= array(); foreach($data as $d){ $ret[$d['RecName']]= trim($d['RecData']); } return $ret; } $img= array_pop( explode( basename($_SERVER['SCRIPT_NAME']), $_SERVER['PHP_SELF'] ) ); $dir= dirname( $img ); $ls= glob(".$dir/*.jpg"); $lsPos= array_search(".$img",$ls,true); if( $lsPos===false && count($ls) ){ $img= substr($ls[0],1); $lsPos=0; } $fwd= "/bild.php". substr( $ls[($lsPos+2 > count($ls) ? 0 : $lsPos+1)], 1); $rwd= "/bild.php". substr( $ls[($lsPos==0 ? count($ls)-1 : $lsPos-1)], 1); $hdrData= get_jpeg_header_data("$_SERVER[DOCUMENT_ROOT]/$img"); $info= assocData( get_Photoshop_IPTC( get_Photoshop_IRB( $hdrData ))); /* */ $bu= "" // ."$dir/*.jpg\n" // ."$img:\n " // ."\nls [$lsPos]: ". print_r($ls,1) // ."\njpeg: ". print_r( $imgHdr, 1 ) // ."\ncom: ". print_r( trim(get_jpeg_Comment($imgHdr)), 1 ) // ."\nmeta: ". print_r( get_Meta_JPEG("$_SERVER[DOCUMENT_ROOT]/$img"), 1 ) // ."\nintr: ". print_r( get_jpeg_intrinsic_values("$_SERVER[DOCUMENT_ROOT]/$img"), 1 ) // ."\nps : ". print_r( assocData( get_Photoshop_IPTC( get_Photoshop_IRB( $imgHdr ) ) ), 1 ) // ."\nps : ". print_r( get_photoshop_file_info("$_SERVER[DOCUMENT_ROOT]/$img"), 1 ) // ."\nexif: ". print_r( get_EXIF_JPEG("$_SERVER[DOCUMENT_ROOT]/$img"), 1 ) // ."\n\n". .( $info['Caption/Abstract'] ? "
". nl2br(print_r($info['Caption/Abstract'],1)) ."
\n" : "" ) .($info['By-Line (Author)'] ? "Bild: " .( $info['Copyright Notice'] ? "" : "" ) .$info['By-Line (Author)']."
\n" : "" ) .""; $title= $info['Headline'] ? $info['Headline'] : basename($img); ?>