ros-visualization / rqt_bag

http://wiki.ros.org/rqt_bag
31 stars 55 forks source link

Potential bug in image_helper.py #60

Closed anug7 closed 4 years ago

anug7 commented 4 years ago

In Python 3,

Line no: 52 pil_img = Image.open(StringIO(img_msg.data)) fails..

It works when using BytesIO from io module Line no: 35 from io import BytesIO Line no: 52 pil_img = Image.open(BytesIO(img_msg.data))