Logo Search packages:      
Sourcecode: rapid-photo-downloader version File versions  Download package

def rapid::metadata::MetaData::aperture (   self,
  missing = '' 
)

Returns in string format the floating point value of the image's aperture.

Returns missing if the metadata value is not present.

Reimplemented in rapid::metadata::DummyMetaData.

Definition at line 128 of file metadata.py.

00128                                   :
        """ 
        Returns in string format the floating point value of the image's aperture.
        
        Returns missing if the metadata value is not present.
        """
        
        try:
            if  usesRational:
                a = self["Exif.Photo.FNumber"]
                a0,  a1 = str(a).split('/')
            else:
                a0, a1 = self["Exif.Photo.FNumber"]
            a = float(a0) / float(a1)
            return "%.1f" % a
        except:
            return missing
            
    def iso(self, missing=''):


Generated by  Doxygen 1.6.0   Back to index