degal/image.py
changeset 122 292aaba6d6ec
parent 120 55cb7fc9c8fb
child 123 31c4a328ef96
equal deleted inserted replaced
121:3bed35e79f41 122:292aaba6d6ec
    61 
    61 
    62         # look up using exif
    62         # look up using exif
    63         return exif.load(self.config, self)
    63         return exif.load(self.config, self)
    64     
    64     
    65     @lazy_load
    65     @lazy_load
       
    66     def orientation (self) :
       
    67         """
       
    68             Loads the orientation of this image as a (mirroring, rotation) tuple, or None, if the information is not available.
       
    69         """
       
    70 
       
    71         if self.config.with_exif and self.exif :
       
    72             # try and find it
       
    73             return self.exif.get_orientation()
       
    74 
       
    75         else :
       
    76             # no exif data
       
    77             return None
       
    78 
       
    79     @lazy_load
    66     def metadata (self) :
    80     def metadata (self) :
    67         """
    81         """
    68             Load and return the metadata for the image as a dictionary
    82             Load and return the metadata for the image as a dictionary
    69         """
    83         """
    70 
    84