def bmp_info(data): bmpbytes = data[:30] dd = struct.unpack('<ccIIIIIIHH', bmpbytes) if dd[1] == b'M': return { 'width': dd[6], 'height': dd[7], 'color': dd[9] } else: return
Sign in to make a reply
Roger_R36