Problem with bmp_converter.py

I’m trying to follow the “Loading Image” tutorial, and when I run the “bmp_converter.py” script I get this error:
Traceback (most recent call last):
File “bmp_converter.py”, line 59, in
convert(rgbtype, ‘bmp’, pathname)
File “bmp_converter.py”, line 33, in convert
v = [cvt(r, g, b) for (r, g, b) in im.getdata()]
ValueError: too many values to unpack

I am running on Mac. Please help.

Hi @bthaler, the original bmp needs to be in windows 24bit bmp.

That worked, thanks. There must have been something wrong with my original BMP.

1 Like