Author Topic: Zusätzliche EXIF Felder in 1.7.3  (Read 9975 times)

0 Members and 1 Guest are viewing this topic.

Offline rkreinz

  • Pre-Newbie
  • Posts: 9
    • View Profile
Zusätzliche EXIF Felder in 1.7.3
« on: October 11, 2006, 12:06:13 PM »
Hallo,

Die Version 1.7.3 beinhaltet ja schon einiges an EXIF Feldern/Werten, wie kann ich jedoch noch zusätzliche Felder hinzufügen
wie z.b. ExposureBiasValue ??

Danke,

LG robert

Offline rkreinz

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: Zusätzliche EXIF Felder in 1.7.3
« Reply #1 on: October 13, 2006, 01:26:03 PM »
Hallo Ivan,

Nein leider nicht; das MOD ist etwas anders aufgebaut; es gibt z.b. auch keine "exif.php" im include folder.

Hmm...  :roll:

LG Robert

Offline rkreinz

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: Zusätzliche EXIF Felder in 1.7.3
« Reply #2 on: October 15, 2006, 09:05:31 PM »
..hatte noch niemand dieses Problem oder weiß zumindest wie man die Exif Felder in der Version 1.7.3 hinzufügen kann??

Danke,
Robert

Offline rkreinz

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: Zusätzliche EXIF Felder in 1.7.3
« Reply #3 on: October 18, 2006, 10:27:28 AM »

.....niemand...????


Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Zusätzliche EXIF Felder in 1.7.3
« Reply #4 on: October 18, 2006, 04:57:49 PM »
Also die Funktion findest Du in der functions.php:

Code: [Select]
function get_exif_info($exif) {
  $exif_match = array();
  $exif_match['Make'] = "make";
  $exif_match['Model'] = "model";
  $exif_match['DateTimeOriginal'] = "datetime";
  $exif_match['ISOSpeedRatings'] = "isospeed";
  $exif_match['ExposureTime'] = "exposure";
  $exif_match['FNumber'] = "aperture";
  $exif_match['FocalLength'] = "focallen";

  $exif_array = array();
  if (is_array($exif)) {
    foreach ($exif as $key => $val) {
      if (isset($exif_match[$key])) {
        $exif_info = $val;
        if ($key == "DateTimeOriginal") {
          $exif_array[$exif_match[$key]] = preg_replace("/([0-9]{4}):([0-9]{2}):([0-9]{2})/", "\\3.\\2.\\1", $exif_info);
        }
        elseif ($key == "ExposureTime") {
  $exposure = explode("/", $exif_info);
          $exif_array[$exif_match[$key]] = "1/" . ($exposure[1] / $exposure[0]);
        }
        elseif ($key == "FNumber") {
  $aperture = explode("/", $exif_info);
          $exif_array[$exif_match[$key]] = "F/" . ($aperture[0] / $aperture[1]);
        }
        elseif ($key == "FocalLength") {
  $focalLen = explode("/", $exif_info);
          $exif_array[$exif_match[$key]] = ($focalLen[0] / $focalLen[1]) . "mm";
        }
        else {
          $exif_array[$exif_match[$key]] = $exif_info;
        }
      }
    }
  }
  return $exif_array;
}

Hilft Dir das weiter?
Habe mich mit der Funktion noch nicht wirklich beschäftigt und kann Dir daher auf anhieb auch keinen Tip geben...

Offline rkreinz

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: Zusätzliche EXIF Felder in 1.7.3
« Reply #5 on: October 18, 2006, 10:48:35 PM »
Hi,

Ja, habe die functions.php schon angepasst, aber nur leider wird das zusätzliche Feld nicht angezeigt. Ich weiß leider nicht was ich sonst noch
ändern muss....

LG Robert

Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Zusätzliche EXIF Felder in 1.7.3
« Reply #6 on: October 19, 2006, 09:38:46 AM »
Na dann zeig uns mal was Du bisher geändert hast... (o:

Offline rkreinz

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: Zusätzliche EXIF Felder in 1.7.3
« Reply #7 on: October 19, 2006, 06:37:56 PM »
Wie gesagt habe ich nur die functions.php angepasst (exposurebias):

Code: [Select]
}

function get_exif_info($exif) {
  $exif_match = array();
  $exif_match['Model'] = "model";
  $exif_match['DateTimeOriginal'] = "datetime";
  $exif_match['ISOSpeedRatings'] = "isospeed";
  $exif_match['ExposureTime'] = "exposure";
  $exif_match['ExposureBias'] = "exposurebias";
  $exif_match['FNumber'] = "aperture";
  $exif_match['FocalLength'] = "focallen";

  $exif_array = array();
  if (is_array($exif)) {
    foreach ($exif as $key => $val) {
      if (isset($exif_match[$key])) {
        $exif_info = $val;
        if ($key == "DateTimeOriginal") {
          $exif_array[$exif_match[$key]] = preg_replace("/([0-9]{4}):([0-9]{2}):([0-9]{2})/", "\\3.\\2.\\1", $exif_info);
        }
        elseif ($key == "ExposureTime") {
  $exposure = explode("/", $exif_info);
          $exif_array[$exif_match[$key]] = "1/" . ($exposure[1] / $exposure[0]);
        }
        elseif ($key == "ExposureBias") {
  $exposurebias = explode("/", $exif_info);
          $exif_array[$exif_match[$key]] = "Step" . ($exposurebias[1] / $exposurebias[0]);
        }
        elseif ($key == "FNumber") {
  $aperture = explode("/", $exif_info);
          $exif_array[$exif_match[$key]] = "F/" . ($aperture[0] / $aperture[1]);
        }
        elseif ($key == "FocalLength") {
  $focalLen = explode("/", $exif_info);
          $exif_array[$exif_match[$key]] = ($focalLen[0] / $focalLen[1]) . "mm";
        }
        else {
          $exif_array[$exif_match[$key]] = $exif_info;
        }

Ob ich das natürlich richtig gemacht habe weiß ich nicht, darum habe ich auch hier gefragt ob jemand damit Erfahrung hat.

LG Robert

Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Zusätzliche EXIF Felder in 1.7.3
« Reply #8 on: October 19, 2006, 07:26:58 PM »
Muss mir das morgen ma lin Ruhe anschauen... (o:

Offline rkreinz

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: Zusätzliche EXIF Felder in 1.7.3
« Reply #9 on: October 19, 2006, 07:29:11 PM »
Danke!!  :D

Offline cappuccino

  • Newbie
  • *
  • Posts: 45
    • View Profile
    • PIXXGALLERY
Re: Zusätzliche EXIF Felder in 1.7.3
« Reply #10 on: November 01, 2006, 01:08:08 AM »
Weissabglich, Messmethode und Blitz ja / nein wären noch die wichtigsten Werte die fehlen ;-)
Weiss auch schon jemand warum die Belichtungszeiten nocht korrekt umgerechnet werden sobald man in sekunden Belichtungszeiten kommst? 25 Sek werden dann zb so angezeigt 1/04 sek


Gruß

Offline rkreinz

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: Zusätzliche EXIF Felder in 1.7.3
« Reply #11 on: November 12, 2006, 05:17:47 PM »
..... Kann uns den den niemand in diesem fall helfen????

LG robert  :roll:

Offline rkreinz

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: Zusätzliche EXIF Felder in 1.7.3
« Reply #12 on: January 07, 2007, 10:06:50 PM »
..Hmm.... vielleicht hatte mittlerweile schon jetzt jemand eine Lösung oder Hilfestellung für unser Problem?   :roll:

Danke,
LG Robert