<?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[QImage and QPıx cant read this png image but opencv does why ?]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I encountered a PNG image that neither :</p>
<pre><code>QPixmap qpix(fileName)
</code></pre>
<p dir="auto">nor</p>
<pre><code>QImage photo(fileName);
</code></pre>
<p dir="auto">can read . Both says invalid image.</p>
<p dir="auto">But I can read with and succesfully convert them to qimage and qpix with opencv with :</p>
<pre><code>cv::Mat cv_image = cv::imread(fileName.toStdString());
</code></pre>
<p dir="auto">Is there any clue why this is happening this png image. Other png images has no problem..</p>
<p dir="auto">PS: When I convert to image to jpg or export as png again its working.</p>
<p dir="auto">image is:</p>
<p dir="auto"><a href="http://s000.tinyupload.com/?file_id=21483901468334087956" target="_blank" rel="noopener noreferrer nofollow ugc">http://s000.tinyupload.com/?file_id=21483901468334087956</a></p>
<p dir="auto"><img src="http://s000.tinyupload.com/?file_id=21483901468334087956" alt="IMAGE" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.qt.io/topic/105174/qimage-and-qpıx-cant-read-this-png-image-but-opencv-does-why</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 11:05:05 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/105174.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 20 Jul 2019 10:58:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QImage and QPıx cant read this png image but opencv does why ? on Sun, 21 Jul 2019 09:32:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rahibemeryem">@<bdi>RahibeMeryem</bdi></a><br />
Hi<br />
Yeah, it can do some guessing looking at the header<br />
but I think it only tries to guess if there is<br />
not extension.</p>
]]></description><link>https://forum.qt.io/post/542010</link><guid isPermaLink="true">https://forum.qt.io/post/542010</guid><dc:creator><![CDATA[mrjj]]></dc:creator><pubDate>Sun, 21 Jul 2019 09:32:53 GMT</pubDate></item><item><title><![CDATA[Reply to QImage and QPıx cant read this png image but opencv does why ? on Sun, 21 Jul 2019 09:09:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mrjj">@<bdi>mrjj</bdi></a>   yes you right..  thanks a lot..</p>
<p dir="auto">PS: QImage and QPixmap should check the file as opencv, it is deciding by their extension I assume.</p>
]]></description><link>https://forum.qt.io/post/542008</link><guid isPermaLink="true">https://forum.qt.io/post/542008</guid><dc:creator><![CDATA[RahibeMeryem]]></dc:creator><pubDate>Sun, 21 Jul 2019 09:09:56 GMT</pubDate></item><item><title><![CDATA[Reply to QImage and QPıx cant read this png image but opencv does why ? on Sat, 20 Jul 2019 11:13:52 GMT]]></title><description><![CDATA[<p dir="auto">Hi<br />
The mm.png is actually a jpg file.<br />
It just has the wrong extension.</p>
]]></description><link>https://forum.qt.io/post/541937</link><guid isPermaLink="true">https://forum.qt.io/post/541937</guid><dc:creator><![CDATA[mrjj]]></dc:creator><pubDate>Sat, 20 Jul 2019 11:13:52 GMT</pubDate></item></channel></rss>