<?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[How to scale with display.drawJpg?]]></title><description><![CDATA[<p dir="auto">I know this is not completely the right topic.<br />
Anyway,<br />
I want to scale my jpg, lets say to half its size. I am trying to understand the syntax, but no luck.<br />
This is what I use :<br />
display.drawJpg(JPG_buffer_processed, Append_this_Struct.JPG_size, 0, 0, Append_this_Struct.JPG_width,Append_this_Struct.JPG_height, 1.0f, 0.5f)<br />
assuming the last two floats are a scale factor.<br />
But my jpg stays the same size.<br />
Anyone any idea how to scale my jpg ?<br />
thanks</p>
]]></description><link>https://community.m5stack.com/topic/5465/how-to-scale-with-display-drawjpg</link><generator>RSS for Node</generator><lastBuildDate>Mon, 08 Jun 2026 20:43:38 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/5465.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 06 Jul 2023 12:47:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to scale with display.drawJpg? on Fri, 07 Jul 2023 08:59:12 GMT]]></title><description><![CDATA[<p dir="auto">Thanks,<br />
Indeed,<br />
This works :<br />
display.drawJpg(JPG_buffer_processed, Append_this_Struct.JPG_size, 0, 0, Append_this_Struct.JPG_width,Append_this_Struct.JPG_height,0,0,JPEG_DIV_2);</p>
]]></description><link>https://community.m5stack.com/post/21515</link><guid isPermaLink="true">https://community.m5stack.com/post/21515</guid><dc:creator><![CDATA[HappyUser]]></dc:creator><pubDate>Fri, 07 Jul 2023 08:59:12 GMT</pubDate></item><item><title><![CDATA[Reply to How to scale with display.drawJpg? on Fri, 07 Jul 2023 07:51:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/happyuser" aria-label="Profile: HappyUser">@<bdi>HappyUser</bdi></a> <img src="/assets/uploads/files/1688716299618-95f5de28-9f95-4e3e-933b-5e031b1c1cd1-image.png" alt="0_1688716312291_95f5de28-9f95-4e3e-933b-5e031b1c1cd1-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/post/21513</link><guid isPermaLink="true">https://community.m5stack.com/post/21513</guid><dc:creator><![CDATA[lbuque]]></dc:creator><pubDate>Fri, 07 Jul 2023 07:51:47 GMT</pubDate></item><item><title><![CDATA[Reply to How to scale with display.drawJpg? on Thu, 06 Jul 2023 16:25:51 GMT]]></title><description><![CDATA[<p dir="auto">You are better off scaling the images in GIMP and save the smaller images to the core</p>
]]></description><link>https://community.m5stack.com/post/21506</link><guid isPermaLink="true">https://community.m5stack.com/post/21506</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Thu, 06 Jul 2023 16:25:51 GMT</pubDate></item></channel></rss>