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

def lazygal::metadata::ExifTags::get_date (   self )
Get real time when photo has been taken. We prefer EXIF fields
as those were filled by camera, Image DateTime can be update by
software when editing photos later.

Definition at line 50 of file metadata.py.

                      :
        '''
        Get real time when photo has been taken. We prefer EXIF fields
        as those were filled by camera, Image DateTime can be update by
        software when editing photos later.
        '''
        try:
            return self.get_exif_date('Exif.Photo.DateTimeDigitized')
        except (IndexError, ValueError, KeyError):
            try:
                return self.get_exif_date('Exif.Photo.DateTimeOriginal')
            except (IndexError, ValueError, KeyError):
                try:
                    return self.get_exif_date('Exif.Image.DateTime')
                except (IndexError, ValueError, KeyError):
                    # No date available in EXIF
                    return None


Generated by  Doxygen 1.6.0   Back to index