Changeset 13180


Ignore:
Timestamp:
02/16/12 10:18:18 (8 years ago)
Author:
plg
Message:

manage field SubjectDistance

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

Location:
extensions/exif_view
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/exif_view/language/en_UK/lang.exif.php

    r11902 r13180  
    1818$lang['exif_field_Flash'] = 'Flash'; 
    1919$lang['exif_field_FocalLength'] = 'Focal Length'; 
    20 $lang['exif_field_FocalLengthIn35mmFilm'] = 'Focal Length in 35 mm Film'; 
     20$lang['exif_field_FocalLengthIn35mmFilm'] = 'Focal Length in 35mm Film'; 
    2121$lang['exif_field_ISOSpeedRatings'] = 'ISO'; 
    2222$lang['exif_field_LightSource'] = 'Light Source'; 
     
    2828$lang['exif_field_Software'] = 'EXIF software'; 
    2929$lang['exif_field_WhiteBalance'] = 'White Balancing'; 
     30$lang['exif_field_UndefinedTag:0xA434'] = 'Lens'; 
     31$lang['exif_field_SubjectDistance'] = 'Subject Distance'; 
    3032$lang['exif_value_contrast_hard'] = 'hard'; 
    3133$lang['exif_value_contrast_normal'] = 'normal'; 
  • extensions/exif_view/language/fr_FR/lang.exif.php

    r4664 r13180  
    2929$lang['exif_field_Software'] = 'Logiciel d\'EXIF'; 
    3030$lang['exif_field_WhiteBalance'] = 'Balance des blancs'; 
     31$lang['exif_field_UndefinedTag:0xA434'] = 'Objectif'; 
     32$lang['exif_field_SubjectDistance'] = 'Distance du sujet'; 
    3133$lang['exif_value_contrast_hard'] = 'dur'; 
    3234$lang['exif_value_contrast_normal'] = 'normal'; 
  • 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.