Skip to content

Help displaying an image from file #318

Description

@Hacking-Away

This lib is great, I am only one day in and I have webpages with controls and all sorts showing up where before I was following a lot of tutorials dealing with raw HTML assembling and getting frustrated, fast..... but I feel like I must be missing something with ESPUI and images.

It seems the way to display an image is in a tag, per the docs.

In fact, because HTML can be used in the label's value, you can make a label display images by including an tag.

That's OK for images already accessible by http, but the images I want to display are in LittleFS.

I found #143 which seems to build up a string from a buffer - I don't completely understand if I need to do something like that, streaming the file from LittelFS with file.open and so on, or if - and this is what I hope is true - I missed something and it's built in, and I can just specify an existing file from LittleFS.

Help appreciated :-)

Activity

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