🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    [UIFlow] [Core/Core2] Add image block to show images like JPG on display

    Scheduled Pinned Locked Moved Features Wish List
    2 Posts 1 Posters 5.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      mb
      last edited by

      Add UIFlow image functionality to easily display images like JPG on Core display.

      Support images from flash and micro SD card.

      1 Reply Last reply Reply Quote 0
      • M Offline
        mb
        last edited by

        Ok, I now found the image function on the left side of the Core in UIFlow.

        I was looking for it in the regular list of blocks, especially in "Graphic".

        from m5stack import *
        from m5stack_ui import *
        
        screen = M5Screen()
        screen.clean_screen()
        screen.set_screen_bg_color(0xFFFFFF)
        
        image0 = M5Img("/sd/images/sled150.png", x=0, y=0, parent=None)
        

        It would be great if it could also show JPG files, they still seem to be more common.

        Note that lcd.image() can display JPG files, but it crashes loading from micro SD card.

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post