Ignore:
Timestamp:
Feb 16, 2012, 10:18:18 AM (12 years ago)
Author:
plg
Message:

manage field SubjectDistance

label "Lens" for field UndefinedTag:0xA434 (Canon models)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/exif_view/main.inc.php

    r7276 r13180  
    11<?php /*
    22Plugin Name: Exif View
    3 Version: auto
     3Version: 2.2.a
    44Description: Converts EXIF values to human readable localized values. Corresponds to EXIF specification 2.2, details in http://www.exif.org. Easily extensible.
    55Plugin URI: http://piwigo.org/ext/extension_view.php?eid=155
     
    218218   }
    219219
     220   // distance to subject
     221   if (!(strpos($key, 'SubjectDistance') === FALSE)) {
     222      $tokens = explode('/', $value);
     223      return ($tokens[0]/$tokens[1]).' m';
     224   }
     225
    220226   // white balance
    221227   if (!(strpos($key, 'WhiteBalance') === FALSE)) {
Note: See TracChangeset for help on using the changeset viewer.