🤖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

    Arduino
    3
    4
    5.0k
    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
      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
        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
          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
            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
            • First post
              Last post