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

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

Returns the orientation of the image, as recorded by the camera
Return type int

Reimplemented in rapid::metadata::DummyMetaData.

Definition at line 435 of file metadata.py.

00435                                      :
        """
        Returns the orientation of the image, as recorded by the camera
        Return type int
        """
        try:
            v = self['Exif.Image.Orientation']
            if isinstance(v, types.StringType):
                # pyexiv2 >= 0.2 returns a string, not an int
                v = int(v)
            return v
        except:
            return missing
            
    # following class methods are designed to cope with using both
    # pyexiv2 0.1.x and pyexiv2 0.2.x
            
    def getThumbnailData(self, max_size_needed=0):


Generated by  Doxygen 1.6.0   Back to index