def bmp_info(data): l = list(struct.unpack('<ccIIIIIIHH', data[:30])) print(l) return { 'width': l[6], 'height': l[7], 'color': l[9] }
Sign in to make a reply
4ever