You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
the .html file is generated but the pictures doesn't #6
I installed visual-logging correctly I guess. When I try demo.py the images are not linked in the generated webpage. I get a small question mark image instead of the original image.
I've obviously changed the file name string in cv2.imread
@i also have this issue. I'm using python3.6. The issue seems to be that the base64 encoding is in binary mode. E.g.
If I hand edit it to remove the b'...' it works fine. That is the image should look like:
The fix is to change line 56 of visual-logging/vlogging/init.py to:
"data": base64.b64encode(data).decode(),
Notice the addition of ".decode()". That will suppress the spurious b'...' at least on python 3.6.
This is a bug when using it with python3.
It has already been fixed in #4 in the repository but the pip version is not updated.
Vote on #7 to get it updated.
This was the Python 3 base64-encoding bug — images embedded as b'...' byte literals instead of base64 text. It has long been fixed in master, and v2.0 (#19) adds tests covering image embedding on Python 3.9–3.13. Closing.
Activity
scarrico commentedon Jun 9, 2017
@i also have this issue. I'm using python3.6. The issue seems to be that the base64 encoding is in binary mode. E.g.![]()
If I hand edit it to remove the b'...' it works fine. That is the image should look like:
![]()
The fix is to change line 56 of visual-logging/vlogging/init.py to:
"data": base64.b64encode(data).decode(),
Notice the addition of ".decode()". That will suppress the spurious b'...' at least on python 3.6.
headdab commentedon Sep 27, 2017
I see the same behavior.
diiigle commentedon Jan 7, 2018
This is a bug when using it with python3.
It has already been fixed in #4 in the repository but the pip version is not updated.
Vote on #7 to get it updated.
dchaplinsky commentedon May 16, 2018
Try updated version
headdab commentedon May 17, 2018
Works for me now.
dchaplinsky commentedon Jul 19, 2026
This was the Python 3 base64-encoding bug — images embedded as
b'...'byte literals instead of base64 text. It has long been fixed in master, and v2.0 (#19) adds tests covering image embedding on Python 3.9–3.13. Closing.Generated by Claude Code