def bmp_info(data): a = struct.unpack('<ccIIIIIIHH',data[:30]) if (a[0]== b'B') & (a[1] == b'M'): return { 'width': a[-4], 'height': a[-3], 'color': a[-1] } else: return 'false'
Sign in to make a reply
月半意