#25046·Tasmota

Berry lv.img always tries to load images from sd card if a card is mounted.

Author: LesNewellCreated Sep 20, 2026Updated Sep 21, 2026

PROBLEM DESCRIPTION

A clear and concise description of what the problem is. When using lv.img you cannot specify the file system to use. For instance if I call set_src("A:/mqtt.png") with no SD card inserted it looks for mqtt.png in flash. If the SD card is inserted it looks in the SD card.

REQUESTED INFORMATION

Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!

  • [ x] Read the Contributing Guide and Policy and the Code of Conduct
  • [x ] Searched the problem in issues
  • [ x] Searched the problem in discussions
  • [x ] Searched the problem in the docs
  • [ x] Searched the problem in the chat
  • [ x] Problem is not scripter related, in this case open a discussion and tag gemu2015
  • [ x] Device used (e.g., Sonoff Basic): Crowpanel 7 advance P4
  • Tasmota binary firmware version number used: Built from development
    • Pre-compiled
    • [x ] Self-compiled
  • Flashing tools used: _____
  • Provide the output of command: Backlog Template; Module; GPIO 255:
lua
  Configuration output here:

  • If using rules, provide the output of this command: Backlog Rule1; Rule2; Rule3:
lua
  Rules output here:

  • Provide the output of this command: Status 0:
lua
  STATUS 0 output here:

  • Set weblog to 4 and then, when you experience your issue, provide the output of the Console log:
lua
  Console output here:

TO REPRODUCE

Steps to reproduce the behavior: Paste this into pages.jsonl:

{"page":0,"id":0}
{"id":1,"obj":"img","x":10,"y":10,"src":"A:/mqtt.png"}

Place a png in flash. With no SD card inserted the image shows. With the card inserted no image shows.

EXPECTED BEHAVIOUR

A clear and concise description of what you expected to happen. There should be a way to specify which drive to read from.

SCREENSHOTS

If applicable, add screenshots to help explain your problem.

ADDITIONAL CONTEXT

Add any other context about the problem here. I didn't try just patching the source and submitting a PR because I was concerned about any changes breaking existing user's setups.

(Please, remember to close the issue when the problem has been addressed)