<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 434: Unable to threshold under Fedora 41</title><link>https://sourceforge.net/p/gscan2pdf/bugs/434/</link><description>Recent changes to 434: Unable to threshold under Fedora 41</description><atom:link href="https://sourceforge.net/p/gscan2pdf/bugs/434/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 04 Dec 2024 13:59:04 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/gscan2pdf/bugs/434/feed.rss" rel="self" type="application/rss+xml"/><item><title>#434 Unable to threshold under Fedora 41</title><link>https://sourceforge.net/p/gscan2pdf/bugs/434/?limit=25#59c9/ae0a</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;This is fixed in gscan2pdf-2.13.4-2.fc41.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Petr Písař</dc:creator><pubDate>Wed, 04 Dec 2024 13:59:04 -0000</pubDate><guid>https://sourceforge.net31a7c85a169b75ed32a8ee7afe1725eb1616f008</guid></item><item><title>#434 Unable to threshold under Fedora 41</title><link>https://sourceforge.net/p/gscan2pdf/bugs/434/?limit=25#59c9</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;There is no difference in Fedora 41 and 40 gscan2pdf package code.&lt;/p&gt;
&lt;p&gt;The error message is not from magick command. It's from gdk-pixbuf2 library when gscan2pdf attempts to load PBM image file. That library delegates decoding images to separate modules. Default modules packaged in gdk-pixbuf2-modules removed support for PBM format &lt;a href="https://bugzilla.redhat.com/show_bug.cgi?id=2276464" rel="nofollow"&gt;https://bugzilla.redhat.com/show_bug.cgi?id=2276464&lt;/a&gt;. The support was reintroduced in a new gdk-pixbuf2-modules-extra-2.42.12-2.fc41 package. I added that package to dependencies for gscan2pdf source package a gscan2pdf-tests package.&lt;/p&gt;
&lt;p&gt;But I did not realize that gscan2pdf used PBM format internally for some operations, like for the threshold. I will fix it. In the mean time explicitly installing gdk-pixbuf2-modules-extra RPM package should resolve your problem.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Petr Písař</dc:creator><pubDate>Wed, 04 Dec 2024 10:32:32 -0000</pubDate><guid>https://sourceforge.netf82e2783ae2204b8a018a739fa8d16730e3d86c3</guid></item><item><title>#434 Unable to threshold under Fedora 41</title><link>https://sourceforge.net/p/gscan2pdf/bugs/434/?limit=25#f96b/29c3</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you. I have reached out to the Fedora maintainers via e-mail.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Frans-Willem Post</dc:creator><pubDate>Tue, 03 Dec 2024 20:36:21 -0000</pubDate><guid>https://sourceforge.net65ffdb9b00384b229f360e28732faa43abfb3337</guid></item><item><title>#434 Unable to threshold under Fedora 41</title><link>https://sourceforge.net/p/gscan2pdf/bugs/434/?limit=25#f96b</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I use Debian, which has not yet migrated to imagemagick 7. Because of the API differences, the Fedora maintainer has patched gscan2pdf. So this is a problem which I can't reproduce and thus can't easily fix.&lt;/p&gt;
&lt;p&gt;see &lt;a href="https://sourceforge.net/p/gscan2pdf/bugs/431/"&gt;https://sourceforge.net/p/gscan2pdf/bugs/431/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Please report it to the Fedora maintainer (https://packages.fedoraproject.org/pkgs/gscan2pdf/gscan2pdf/).&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jeffrey Ratcliffe</dc:creator><pubDate>Tue, 03 Dec 2024 18:50:51 -0000</pubDate><guid>https://sourceforge.net332e0797de4e9ddb131783253f8e4693cf573471</guid></item><item><title>Unable to threshold under Fedora 41</title><link>https://sourceforge.net/p/gscan2pdf/bugs/434/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hello all,&lt;/p&gt;
&lt;p&gt;Using gscan2pdf v2.13.4 under Fedora 41.&lt;/p&gt;
&lt;p&gt;Since an upgrade from Fedora 40 to 41, I can no longer use the &lt;em&gt;Threshold&lt;/em&gt; function. Visually, nothing seems to happen when I click &lt;em&gt;Apply&lt;/em&gt;. If I then try to save the file (&lt;kbd&gt;Ctrl&lt;/kbd&gt;+&lt;kbd&gt;S&lt;/kbd&gt;), this fails or simply does not work.&lt;/p&gt;
&lt;p&gt;When run with the &lt;code&gt;--debug&lt;/code&gt; flag, gscan2pdf spits out the following lines on the terminal when executing the &lt;em&gt;Threshold&lt;/em&gt; command. Note the quoting (encoding?) artifacts in the output:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;DEBUG - Free space in /tmp/gscan2pdf-WFp9 (Mb): 7732.87109375 (warning at 10)
INFO - magick /tmp/gscan2pdf-WFp9/4YZ5m29BC7.png +dither -threshold 50% /tmp/gscan2pdf-WFp9/B5M2kC2OYK.pbm
INFO - Spawned PID 7302
WARN - Caught error getting pixbuf: Couldn’t recognize the image file format for file “/tmp/gscan2pdf-WFp9/opgXwg2hW0.pbm” at /usr/lib64/perl5/vendor_perl/Glib/Object/Introspection.pm line 67.

INFO - Replaced /tmp/gscan2pdf-WFp9/4YZ5m29BC7.png (812452AE-B14D-11EF-A83C-D864B52592BA) at page 7 with /tmp/gscan2pdf-WFp9/opgXwg2hW0.pbm (812452AE-B14D-11EF-A83C-D864B52592BA), resolution    200,  200
WARN - *** unhandled exception in callback:
***   Couldnât recognize the image file format for file â/tmp/gscan2pdf-WFp9/opgXwg2hW0.pbmât recognize the image file format for file â/tmp/gscan2pdf-WFp9/opgXwg2hW0.pbmâ
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;If I run the shown &lt;code&gt;magick&lt;/code&gt; command manually in the terminal, this works as expected and returns &lt;code&gt;0&lt;/code&gt; without any errors. Under Fedora 40, the same version (v2.13.4) works as expected.&lt;/p&gt;
&lt;p&gt;Is this a known issue? Can this be resolved? How can I help?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br/&gt;
FWieP&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Frans-Willem Post</dc:creator><pubDate>Tue, 03 Dec 2024 09:34:10 -0000</pubDate><guid>https://sourceforge.net3b51596aa1236eb75467f2e0fd81a8096f6af36a</guid></item></channel></rss>