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

    M5Stack [Core2] Image using drawJpgFile from SD Card

    Scheduled Pinned Locked Moved Arduino
    4 Posts 3 Posters 6.7k 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.
    • AsmodevA Offline
      Asmodev
      last edited by

      I'm using this code to get an image from the SD card formatted with (exFAT) which is placed in the main directory of the SD card.

      //Code to load the image
      M5.Lcd.drawJpgFile(SD, "/wifi.jpg",110,40);

      However it does not work? The image is 100px,100px, trying to place it at x110, y40 on screen.

      The screen has no image? what's wrong with this? the image is in format .jpg but it just refuses to work?

      1 Reply Last reply Reply Quote 0
      • ajb2k3A Offline
        ajb2k3
        last edited by

        Does the image work if directly uploaded to the core2's memory? If not then you need to format the image in a very specific way using a program like GIMP (which is free).

        UIFlow, so easy an adult can learn it!
        If I don't know it, be patient!
        I've ether not learned it or am too drunk to remember it!
        Author of the WIP UIFlow Handbook!
        M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

        1 Reply Last reply Reply Quote 0
        • AsmodevA Offline
          Asmodev
          last edited by

          it works when set as c code and implemented in the sketch yeah.

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

            JPG has several Cilor Mode.
            Use as JPG RGB MODE
            For example, you can do it with GIMP.

            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