<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Please help with persistent error message. Thanks...]]></title><description><![CDATA[<p dir="auto"><em><strong>"Get res/img/UIFScreen2.JPG width and height failed"</strong></em></p>
<p dir="auto">This is driving me mad. 26.9K properly formatted (baseline, no Progressive, 4:4:4 sample) JPG will not display in Uniflow 2.0.4 and returns error above. Background image is exactly 135 x 240 px for the M5StickC 2+. Displays OK in UIF but won't work when run.</p>
<p dir="auto">Would greatly appreciate any corrections or suggestions. Thanks...</p>
<pre><code>import os, sys, io
import M5
from M5 import *
from boot_option import *
from hardware import *
from unit import NCIRUnit
import time

image0 = None
TempF = None
i2c0 = None
ncir_0 = None

def setup():
  global image0, TempF, i2c0, ncir_0

  set_boot_option(1)
  i2c0 = I2C(0, scl=Pin(33), sda=Pin(32), freq=100000)
  ncir_0 = NCIRUnit(i2c0)
  M5.begin()
  Widgets.fillScreen(0xec0865)
  image0 = Widgets.Image("res/img/UIFScreen2.JPG", 0, 0)
  TempF = Widgets.Label("TempF", 0, 105, 1.0, 0xe5ff13, 0x0838ec, Widgets.FONTS.DejaVu40)

  Widgets.setRotation(3)

def loop():
  global image0, TempF, i2c0, ncir_0
  M5.update()
  TempF.setText(str((int(ncir_0.get_object_temperature())) * 1.8 + 32))
  time.sleep(5)</code></pre>
]]></description><link>https://community.m5stack.com/topic/6329/please-help-with-persistent-error-message-thanks</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 23:22:42 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/6329.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 13 Apr 2024 02:07:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Please help with persistent error message. Thanks... on Sun, 23 Mar 2025 11:47:12 GMT]]></title><description><![CDATA[<p dir="auto">Hi All,  I'm a bit late to the party.  I've had this same issue this week.  I downloaded one of the default images to see that it was indexed colour and 8 bit.  I'm not sure if this is also the issue as I stopped testing after I converted all my images and found what I believe to be the issue.</p>
<p dir="auto">When you select an image it will be added to the project files.  However, the code that is created from the UIBlocks shows it is trying to load an image from res/img/.... As soon as I uploaded the image to this folder, via the web terminal file menu, my issue was resolved.</p>
<p dir="auto">I realise this is a bit late for the others, but, hopefully, new comers may find it useful.</p>
]]></description><link>https://community.m5stack.com/post/28610</link><guid isPermaLink="true">https://community.m5stack.com/post/28610</guid><dc:creator><![CDATA[JensH]]></dc:creator><pubDate>Sun, 23 Mar 2025 11:47:12 GMT</pubDate></item><item><title><![CDATA[Reply to Please help with persistent error message. Thanks... on Tue, 27 Aug 2024 12:51:56 GMT]]></title><description><![CDATA[<p dir="auto">I had the same issue today but was able to solve it by uploading the image file to my M5Stack before running.<br />
You can do it by opening the device file manager in UI Flow.<br />
Clicking it will open the console so you can link to your device and then you'll be able to find an icon on the console window helper to open the file manager.<br />
Upload the image to the folder you specified in code (it's not that fast but it works) and then run your project again.</p>
]]></description><link>https://community.m5stack.com/post/26241</link><guid isPermaLink="true">https://community.m5stack.com/post/26241</guid><dc:creator><![CDATA[avildes]]></dc:creator><pubDate>Tue, 27 Aug 2024 12:51:56 GMT</pubDate></item><item><title><![CDATA[Reply to Please help with persistent error message. Thanks... on Wed, 14 Aug 2024 08:08:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lbuque" aria-label="Profile: lbuque">@<bdi>lbuque</bdi></a> I have tried lowercase and uppercase, changing the file type and extension, also if you modify the original background the same error appears. Thank you</p>
]]></description><link>https://community.m5stack.com/post/26083</link><guid isPermaLink="true">https://community.m5stack.com/post/26083</guid><dc:creator><![CDATA[santtlorenzo]]></dc:creator><pubDate>Wed, 14 Aug 2024 08:08:42 GMT</pubDate></item><item><title><![CDATA[Reply to Please help with persistent error message. Thanks... on Mon, 29 Jul 2024 01:22:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wmatkins" aria-label="Profile: wmatkins">@<bdi>wmatkins</bdi></a> said in <a href="/post/24772">Please help with persistent error message. Thanks...</a>:</p>
<blockquote>
<p dir="auto">res/img/UIFScreen2.JPG</p>
</blockquote>
<p dir="auto">Modify the file to res/img/UIFScreen2.jpg</p>
]]></description><link>https://community.m5stack.com/post/25941</link><guid isPermaLink="true">https://community.m5stack.com/post/25941</guid><dc:creator><![CDATA[lbuque]]></dc:creator><pubDate>Mon, 29 Jul 2024 01:22:27 GMT</pubDate></item><item><title><![CDATA[Reply to Please help with persistent error message. Thanks... on Sat, 27 Jul 2024 10:23:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wmatkins" aria-label="Profile: wmatkins">@<bdi>wmatkins</bdi></a> Hello, have you solved it? I have the same problem and I don't know what happens with the images</p>
]]></description><link>https://community.m5stack.com/post/25935</link><guid isPermaLink="true">https://community.m5stack.com/post/25935</guid><dc:creator><![CDATA[santtlorenzo]]></dc:creator><pubDate>Sat, 27 Jul 2024 10:23:05 GMT</pubDate></item></channel></rss>