Boost C++ Libraries: Ticket #8429: [gil] Reading TGA images with origin in upper left-hand corner. https://svn.boost.org/trac10/ticket/8429 <p> Hi, </p> <p> I know the TGA support is work in progress, but... </p> <p> I have some TGA files that have bit 5 set in the "Image Descriptor". This causes <code></code>reader_backend::read_header<code></code> to throw: </p> <blockquote> <p> "Unsupported descriptor for targa file" </p> </blockquote> <p> The quick-n-dirty fix is just to mask out bit 5 in the check and update <code></code>reader::apply<code></code> such that <code></code>read_data<code></code> operates on a <code></code>flipped_up_down_view<code></code> if the bit is set. </p> <p> Unfortunately I don't have any sample images that I can attach (legal reasons), but when I do I will. </p> <p> Anyway hope the above is of some use. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8429 Trac 1.4.3 anonymous Thu, 11 Apr 2013 14:11:56 GMT attachment set https://svn.boost.org/trac10/ticket/8429 https://svn.boost.org/trac10/ticket/8429 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">patch.txt</span> </li> </ul> <p> Illustration of changes (quick-n-dirty patch) </p> Ticket anonymous Tue, 16 Apr 2013 09:44:36 GMT attachment set https://svn.boost.org/trac10/ticket/8429 https://svn.boost.org/trac10/ticket/8429 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">Image.zip</span> </li> </ul> <p> Sample image file </p> Ticket anonymous Tue, 16 Apr 2013 10:49:16 GMT <link>https://svn.boost.org/trac10/ticket/8429#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8429#comment:1</guid> <description> <p> I am not an expert on image formats! </p> <p> I think you are strictly adhering to the Truevision format. And I think that relaxing that requirement may have consequences w.r.t. run length encoding. It's more complicated than I first thought. None-the-less I would be grateful if you could give this issue your consideration. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Wed, 17 Apr 2013 13:42:33 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8429#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8429#comment:2</guid> <description> <p> I used GIMP2 to generate all four combinations of: </p> <ul><li>RLE compressed/uncompressed and </li><li>Origin bottom left/top left </li></ul><p> With the above patch applied <code>read_image</code> loaded them okay and they saved (as PNG) the right way up. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Wed, 07 Jan 2015 13:31:22 GMT</pubDate> <title>version changed https://svn.boost.org/trac10/ticket/8429#comment:3 https://svn.boost.org/trac10/ticket/8429#comment:3 <ul> <li><strong>version</strong> <span class="trac-field-old">Boost 1.54.0</span> → <span class="trac-field-new">Boost Development Trunk</span> </li> </ul> Ticket Mateusz Loskot Thu, 16 Feb 2017 10:53:42 GMT cc set https://svn.boost.org/trac10/ticket/8429#comment:4 https://svn.boost.org/trac10/ticket/8429#comment:4 <ul> <li><strong>cc</strong> <span class="trac-author">mateusz@…</span> added </li> </ul> Ticket Stefan Seefeld Sat, 01 Jul 2017 21:14:53 GMT owner changed https://svn.boost.org/trac10/ticket/8429#comment:5 https://svn.boost.org/trac10/ticket/8429#comment:5 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Hailin Jin</span> to <span class="trac-author">Stefan Seefeld</span> </li> </ul> Ticket Mateusz Loskot Mon, 25 Jun 2018 13:33:55 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/8429#comment:6 https://svn.boost.org/trac10/ticket/8429#comment:6 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> This should be fixed as part of </p> <p> <a class="ext-link" href="https://github.com/boostorg/gil/issues/33"><span class="icon">​</span>https://github.com/boostorg/gil/issues/33</a> <a class="ext-link" href="https://github.com/boostorg/gil/pull/42"><span class="icon">​</span>https://github.com/boostorg/gil/pull/42</a> </p> <p> If it is not working, please reopen new issue on <a class="missing wiki">GitHub</a> </p> Ticket