lib.EXIF

EXIF_header

class supreme.lib.EXIF.EXIF_header(file, endian, offset, fake_exif, debug=0)
__init__(file, endian, offset, fake_exif, debug=0)
canon_decode_tag(value, dict)
decode_maker_note()
dump_IFD(ifd, ifd_name, dict={256: ('ImageWidth', ), 257: ('ImageLength', ), 258: ('BitsPerSample', ), 259: ('Compression', {1: 'Uncompressed TIFF', 6: 'JPEG Compressed'}), 36868: ('DateTimeDigitized', ), 37381: ('MaxApertureValue', ), 262: ('PhotometricInterpretation', ), 513: ('JPEGInterchangeFormat', ), 37384: ('LightSource', {0: 'Unknown', 1: 'Daylight', 2: 'Fluorescent', 3: 'Tungsten', 10: 'Flash', 17: 'Standard Light A', 18: 'Standard Light B', 19: 'Standard Light C', 20: 'D55', 21: 'D65', 22: 'D75', 255: 'Other'}), 37385: ('Flash', {0: 'No', 1: 'Fired', 5: 'Fired (?)', 7: 'Fired (!)', 9: 'Fill Fired', 13: 'Fill Fired (?)', 15: 'Fill Fired (!)', 16: 'Off', 24: 'Auto Off', 25: 'Auto Fired', 29: 'Auto Fired (?)', 31: 'Auto Fired (!)', 32: 'Not Available'}), 266: ('FillOrder', ), 41483: ('FlashEnergy', ), 41484: ('SpatialFrequencyResponse', ), 269: ('DocumentName', ), 270: ('ImageDescription', ), 271: ('Make', ), 272: ('Model', ), 273: ('StripOffsets', ), 274: ('Orientation', {1: 'Horizontal (normal)', 2: 'Mirrored horizontal', 3: 'Rotated 180', 4: 'Mirrored vertical', 5: 'Mirrored horizontal then rotated 90 CCW', 6: 'Rotated 90 CW', 7: 'Mirrored horizontal then rotated 90 CW', 8: 'Rotated 90 CCW'}), 531: ('YCbCrPositioning', ), 532: ('ReferenceBlackWhite', ), 277: ('SamplesPerPixel', ), 278: ('RowsPerStrip', ), 279: ('StripByteCounts', ), 33432: ('Copyright', ), 37380: ('ExposureBiasValue', ), 282: ('XResolution', ), 283: ('YResolution', ), 284: ('PlanarConfiguration', ), 33434: ('ExposureTime', ), 41728: ('FileSource', {3: 'Digital Camera'}), 40965: ('InteroperabilityOffset', ), 34850: ('ExposureProgram', {0: 'Unidentified', 1: 'Manual', 2: 'Program Normal', 3: 'Aperture Priority', 4: 'Shutter Priority', 5: 'Program Creative', 6: 'Program Action', 7: 'Portrait Mode', 8: 'Landscape Mode'}), 34852: ('SpectralSensitivity', ), 34853: ('GPSInfo', ), 34855: ('ISOSpeedRatings', ), 296: ('ResolutionUnit', {1: 'Not Absolute', 2: 'Pixels/Inch', 3: 'Pixels/Centimeter'}), 37383: ('MeteringMode', {0: 'Unidentified', 1: 'Average', 2: 'CenterWeightedAverage', 3: 'Spot', 4: 'MultiSpot'}), 37121: ('ComponentsConfiguration', {0: '', 1: 'Y', 2: 'Cb', 3: 'Cr', 4: 'Red', 5: 'Green', 6: 'Blue'}), 301: ('TransferFunction', ), 33437: ('FNumber', ), 305: ('Software', ), 306: ('DateTime', ), 37377: ('ShutterSpeedValue', ), 37522: ('SubSecTimeDigitized', ), 41486: ('FocalPlaneXResolution', ), 315: ('Artist', ), 41729: ('SceneType', {1: 'Directly Photographed'}), 37378: ('ApertureValue', ), 318: ('WhitePoint', ), 319: ('PrimaryChromaticities', ), 40962: ('ExifImageWidth', ), 37386: ('FocalLength', ), 36864: ('ExifVersion', <function <lambda> at 0x1051cfe60>), 40960: ('FlashPixVersion', <function <lambda> at 0x1051cff50>), 41495: ('SensingMethod', ), 37122: ('CompressedBitsPerPixel', ), 37510: ('UserComment', <function <lambda> at 0x1051cfed8>), 33421: ('CFARepeatPatternDim', ), 514: ('JPEGInterchangeFormatLength', ), 33422: ('CFAPattern', ), 342: ('TransferRange', ), 41487: ('FocalPlaneYResolution', ), 41730: ('CVAPattern', ), 33423: ('BatteryLevel', ), 40961: ('ColorSpace', ), 36867: ('DateTimeOriginal', ), 37520: ('SubSecTime', ), 33723: ('IPTC/NAA', ), 37521: ('SubSecTimeOriginal', ), 529: ('YCbCrCoefficients', ), 34665: ('ExifOffset', ), 40963: ('ExifImageLength', ), 530: ('YCbCrSubSampling', ), 512: ('JPEGProc', ), 37379: ('BrightnessValue', ), 34856: ('OECF', ), 34675: ('InterColorProfile', ), 37382: ('SubjectDistance', ), 41488: ('FocalPlaneResolutionUnit', ), 41492: ('SubjectLocation', ), 37500: ('MakerNote', ), 41493: ('ExposureIndex', )}, relative=0)
extract_TIFF_thumbnail(thumb_ifd)
first_IFD()
list_IFDs()
n2s(offset, length)
next_IFD(ifd)
s2n(offset, length, signed=0)

IFD_Tag

class supreme.lib.EXIF.IFD_Tag(printable, tag, field_type, values, field_offset, field_length)
__init__(printable, tag, field_type, values, field_offset, field_length)

Ratio

class supreme.lib.EXIF.Ratio(num, den)
__init__(num, den)
reduce()
supreme.lib.EXIF.gcd(a, b)
supreme.lib.EXIF.olympus_special_mode(v)
supreme.lib.EXIF.process_file(file[, debug])
supreme.lib.EXIF.s2n_intel(str)
supreme.lib.EXIF.s2n_motorola(str)

gcd

supreme.lib.EXIF.gcd(a, b)

olympus_special_mode

supreme.lib.EXIF.olympus_special_mode(v)

process_file

supreme.lib.EXIF.process_file(file, debug=0)

s2n_intel

supreme.lib.EXIF.s2n_intel(str)

s2n_motorola

supreme.lib.EXIF.s2n_motorola(str)