def bmp_info(data): result = struct.unpack('<ccIIIIIIHH', data[:30]) if result[0:2] == (b'B', b'M'): return {'width': result[6], 'height': result[7], 'color': result[9]} print('This is not a bmp file!')
Sign in to make a reply
用户5738776098