Geissler Service
Amazon
Forum für die Fotosysteme von Sony und KonicaMinolta
  SonyUserforum - Forum für die Fotosysteme
von Sony und KonicaMinolta
 
Registrieren Galerie Objektiv-Datenbank Kalender Forenregeln Alle Foren als gelesen markieren

Startseite » Forenübersicht » Treffpunkt » Café d`Image » 4images & exif daten?
Antwort
 
Themen-Optionen Ansicht
Alt 26.11.2005, 09:50   #1
Henning
 
 
Registriert seit: 23.11.2004
Ort: D-34225 Baunatal - Rengershausen
Beiträge: 622
Zitat:
Zitat von Jerichos
Zitat:
Zitat von XxJakeBluesxX
Für FocalLength sieht er so aus:
Code:
     case "FocalLength": 
       //$val = (round(exif_get_str_val($val))*3.89) . " mm";
	   break;
Das funzt nur für die Dimage!!!

Bevor wir hier ewig Scripte hin und her schicken, hier unsere derzeitige exif.php:
Code:
<?php 

// true: enable the field filter 
// false: disable the field filter 
define('EXIF_CONTROL', true); 

// add the field name for show in exif section 
// remember the field name with the colon ":" 
define('EXIF_FILTER', " 
Model: 
ExposureTime: 
FNumber: 
ISOSpeedRatings: 
FocalLengthIn35mmFilm: 
"); 

function exif_filter_control() { 
  return EXIF_CONTROL; 
} 

function exif_filter($name) { 
  if (strpos(EXIF_FILTER, ($name . ":")) > 0) { 
    return true; 
  } else { 
    return false; 
  } 
  
}    


function exif_get_str_val($val) { 
  $val = (substr($val, 0, strpos($val, "/"))) / (substr($val, strpos($val, "/") + 1)); 
  return $val; 
} 

function exif_parse_value($name, $val) { 
  switch($name) { 
     case "Orientation": 
       if($val==1) $val = "Normal"; 
       if($val==2) $val = "Mirrored"; 
       if($val==3) $val = "Upsidedown"; 
       if($val==4) $val = "Upsidedown Mirrored"; 
       if($val==5) $val = "90deg CW Mirrored"; 
       if($val==6) $val = "90deg CCW"; 
       if($val==7) $val = "90deg CCW Mirrored"; 
       if($val==8) $val = "90deg CW"; 
       break; 
     case "ResolutionUnit": 
       if($val==1) $val = "No Unit"; 
       if($val==2) $val = "Inch"; 
       if($val==3) $val = "Centimeter"; 
       break; 
     case "YCbCrPositioning": 
       if($val==1) $val = "Pixel Array"; 
       if($val==2) $val = "Datum Point"; 
       break;
	 case "ExposureTime": 
	   $valpieces = explode("/",$val); 
	   $val = round(($valpieces[1] / $valpieces[0]), 2);
	   if ($val < 1) {
	   	  $val = 1 / $val;
		  $val = round($val, 0) . " Sekunden";
	   } elseif ($val == 1) {
	   	  $val = 1 / $val;
		  $val = round($val, 0) . " Sekunde"; 
	   } elseif ($val == 1.5 || $val == 2.5) {
	   	  $val = "2/" . 2 * $val . " Sekunden";  
	   } else {
	      $val = "1/" . $val . " Sekunden"; 
	   }
	   break;   
     case "FNumber": 
       $val = "F/" . exif_get_str_val($val); 
       break; 
     case "ExposureProgram": 
       if($val==1) $val = "Manual control"; 
       if($val==2) $val = "Program normal"; 
       if($val==3) $val = "Aperture priority"; 
       if($val==4) $val = "Shutter priority"; 
       if($val==5) $val = "Program creative(slow program)"; 
       if($val==6) $val = "Program action(high-speed program)"; 
       if($val==7) $val = "Portrait mode"; 
       if($val==8) $val = "Landscape mode"; 
       break;        
     case "ExifVersion": 
       $val = round($val / 100, 2); 
       break; 
     case "ComponentsConfiguration": 
       $val = bin2hex($val); 
       $val = str_replace("01","Y",$val); 
       $val = str_replace("02","Cb",$val); 
       $val = str_replace("03","Cr",$val); 
       $val = str_replace("04","R",$val); 
       $val = str_replace("05","G",$val); 
       $val = str_replace("06","B",$val); 
       $val = str_replace("00","",$val);        
       break; 
     case "CompressedBitsPerPixel": 
       $val = exif_get_str_val($val); 
       break; 
     case "ShutterSpeedValue": 
       $val = "1/" . round(pow(2, exif_get_str_val($val))) . " seconds"; 
       break; 
     case "ApertureValue": 
       $val = "F/" . round(pow(sqrt(2), exif_get_str_val($val)),1); 
       break; 
     case "BrightnessValue ": 
       $val = exif_get_str_val($val); 
       break;        
     case "ExposureBiasValue": 
       if ((substr($val, 0, strpos($val, "/"))) == "0") { 
           $val = "0 Step"; 
       } else { 
           $val = $val . " Step"; 
       } 
       break; 
     case "MaxApertureValue": 
       $val = "F/" . round(pow(sqrt(2), exif_get_str_val($val)),1); 
       break; 
     case "SubjectDistance": 
       $val = exif_get_str_val($val) . " M"; 
       break;        
     case "MeteringMode": 
       if($val==0) $val = "Unknown"; 
       if($val==1) $val = "Average"; 
       if($val==2) $val = "Center Weighted Average"; 
       if($val==3) $val = "Spot"; 
       if($val==4) $val = "Multi-spot"; 
       if($val==5) $val = "Multi-segment"; 
       if($val==6) $val = "Partial"; 
       if($val==255) $val = "Other";        
       break; 
     case "LightSource": 
       if($val==0) $val = "Unknown"; 
       if($val==1) $val = "Daylight"; 
       if($val==2) $val = "Fluorescent"; 
       if($val==3) $val = "Tungsten"; 
       if($val==10) $val = "Flash"; 
       if($val==17) $val = "Standard light A"; 
       if($val==18) $val = "Standard light B"; 
       if($val==19) $val = "Standard light C"; 
       if($val==20) $val = "D55"; 
       if($val==21) $val = "D65"; 
       if($val==22) $val = "D75"; 
       if($val==255) $val = "Other"; 
       break;        
     case "Flash": 
       if($val==0) $val = "No Flash"; 
       if($val==1) $val = "Flash fired"; 
       if($val==5) $val = "Flash fired but strobe return light not detected"; 
       if($val==7) $val = "Flash fired and strobe return light detected"; 
       if($val==9) $val = "Undefined"; 
       break; 
     case "FocalLength": 
       $val = exif_get_str_val($val) . " mm"; 
       break; 
     case "FocalLengthIn35mmFilm": 
       $val = $val . " mm"; 
       break; 
     case "FlashPixVersion": 
       $val = round($val / 100, 2); 
       break; 
     case "ColorSpace": 
       if($val==1) $val = "sRGB"; 
       if($val=='65535') $val = "Uncalibrated"; 
       break; 
     case "FocalPlaneXResolution": 
       $val = round(exif_get_str_val($val)); 
       break; 
     case "FocalPlaneYResolution": 
       $val = round(exif_get_str_val($val)); 
       break;                        
     case "FocalPlaneResolutionUnit": 
       if($val==1) $val = "No Unit"; 
       if($val==2) $val = "Inch"; 
       if($val==3) $val = "Centimeter"; 
       break; 
     case "SensingMethod": 
       if($val==2) $val = "1 chip color area sensor"; 
       break; 
     case "FileSource": 
       $val = bin2hex($val); 
       if($val==0x03) $val = "Digital still camera";      
       break; 
     case "FileSource": 
       $val = bin2hex($val); 
       if($val==0x01) $val = "Directly photographed";      
       break; 




     } 
      
  return $val; 
} 
?>
Hallo zusammen!
Habe mal diesen alten (hilfreichen!) Thread rausgekramt und jetzt nach allem basteln ein Problemchen:
Ich habe Deine exif.php Datei erstellt, Jürgen und es erscheint nun oben über der Anzeige von 4images folgende Meldung:


Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /srv/www/htdocs/web55/html/4images/includes/exif.php:1) in /srv/www/htdocs/web55/html/4images/includes/sessions.php on line 84

Kann mir jemand helfen?
Manni vielleicht?
Jürgen?

Danke!

Werde wahrscheinlich erst wieder heute abend darauf zurückkommen können, da Großveranstaltung unserer Kirchengemeinde ansteht, aber schon Danke!

Gruß
Henning
__________________
Meine Homepage
Henning ist offline   Mit Zitat antworten
Sponsored Links
Antwort
Startseite » Forenübersicht » Treffpunkt » Café d`Image » 4images & exif daten?

Themen-Optionen
Ansicht

Forenregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.

Gehe zu


Alle Zeitangaben in WEZ +2. Es ist jetzt 21:11 Uhr.