Skip to content

the .html file is generated but the pictures doesn't #6

Description

@at0mb0y

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

Activity

  1. scarrico commented on Jun 9, 2017

    @scarrico

    @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.

  2. headdab commented on Sep 27, 2017

    @headdab

    I see the same behavior.

  3. diiigle commented on Jan 7, 2018

    @diiigle

    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.

  4. dchaplinsky commented on May 16, 2018

    @dchaplinsky
    Owner

    Try updated version

  5. headdab commented on May 17, 2018

    @headdab

    Works for me now.

  6. dchaplinsky commented on Jul 19, 2026

    @dchaplinsky
    Owner

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions