<?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[M5.Lcd.drawJpg in python]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">Is there an equivalent version of "M5.Lcd.drawJpg" in python on the M5Stack?</p>
]]></description><link>https://community.m5stack.com/topic/2049/m5-lcd-drawjpg-in-python</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 19:11:49 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/2049.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 15 Jun 2020 18:40:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to M5.Lcd.drawJpg in python on Mon, 01 Feb 2021 13:42:44 GMT]]></title><description><![CDATA[<p dir="auto">Now I found working code for UIFlow 1.7.2, but this only supports PNGs:</p>
<pre><code>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)
</code></pre>
]]></description><link>https://community.m5stack.com/post/12222</link><guid isPermaLink="true">https://community.m5stack.com/post/12222</guid><dc:creator><![CDATA[mb]]></dc:creator><pubDate>Mon, 01 Feb 2021 13:42:44 GMT</pubDate></item><item><title><![CDATA[Reply to M5.Lcd.drawJpg in python on Mon, 01 Feb 2021 09:59:08 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/ajb2k3" aria-label="Profile: ajb2k3">@<bdi>ajb2k3</bdi></a>, is M5Img still the preferred way to display an image on the Core2?</p>
<p dir="auto">Somehow it doesn't work for me, neither from flash nor from micro SD card.</p>
<pre><code>&gt;&gt;&gt; from m5stack import *
    from m5stack_ui import *
    from uiflow import *
    image0 = M5Img(0, 0, "/flash/images/sled240.jpg", True)

Traceback (most recent call last):
  File "&lt;stdin&gt;", line 4, in &lt;module&gt;
  File "m5stack_ui.py", line 493, in __init__
TypeError: 'int' object isn't iterable
</code></pre>
<p dir="auto">I can use lcd.image(), but that crashes for pictures from the mico SD card (<a href="https://community.m5stack.com/topic/2872/core2-loads-jpg-from-flash-but-crashes-with-image-from-micro-sd-card/3">link</a>).</p>
]]></description><link>https://community.m5stack.com/post/12216</link><guid isPermaLink="true">https://community.m5stack.com/post/12216</guid><dc:creator><![CDATA[mb]]></dc:creator><pubDate>Mon, 01 Feb 2021 09:59:08 GMT</pubDate></item><item><title><![CDATA[Reply to M5.Lcd.drawJpg in python on Wed, 17 Jun 2020 11:22:55 GMT]]></title><description><![CDATA[<pre><code>image0 = M5Img(107, 65, "res/default.jpg", True)</code></pre>
]]></description><link>https://community.m5stack.com/post/9033</link><guid isPermaLink="true">https://community.m5stack.com/post/9033</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Wed, 17 Jun 2020 11:22:55 GMT</pubDate></item><item><title><![CDATA[Reply to M5.Lcd.drawJpg in python on Mon, 15 Jun 2020 19:09:36 GMT]]></title><description><![CDATA[<p dir="auto">lcd.image(100, 100, file="res/default.jpg", scale=0, type=lcd.JPG)</p>
]]></description><link>https://community.m5stack.com/post/9018</link><guid isPermaLink="true">https://community.m5stack.com/post/9018</guid><dc:creator><![CDATA[tehnolog]]></dc:creator><pubDate>Mon, 15 Jun 2020 19:09:36 GMT</pubDate></item></channel></rss>