Logo Search packages:      
Sourcecode: lazygal version File versions  Download package

def lazygal::metadata::ExifTags::get_exif_float_value (   self,
  name 
)
Reads float number from EXIF information (where it is stored as
fraction or int).

Definition at line 137 of file metadata.py.

                                        :
        '''
        Reads float number from EXIF information (where it is stored as
        fraction or int).
        '''
        val = self[name]
        if type(val) == int:
            return float(val)
        else:
            return float(val[0]) / float(val[1])


Generated by  Doxygen 1.6.0   Back to index