<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 427: LibTIFF 4.6.0 dropped support for tiff2ps and tiff2pdf</title><link>https://sourceforge.net/p/gscan2pdf/bugs/427/</link><description>Recent changes to 427: LibTIFF 4.6.0 dropped support for tiff2ps and tiff2pdf</description><atom:link href="https://sourceforge.net/p/gscan2pdf/bugs/427/feed.rss" rel="self"/><language>en</language><lastBuildDate>Mon, 10 Nov 2025 11:52:41 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/gscan2pdf/bugs/427/feed.rss" rel="self" type="application/rss+xml"/><item><title>#427 LibTIFF 4.6.0 dropped support for tiff2ps and tiff2pdf</title><link>https://sourceforge.net/p/gscan2pdf/bugs/427/?limit=25#70f8</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;For those who are stuck to LibTIFF 4.6.0, here is a patch rebased to gscan2pdf-2.13.5.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Petr Písař</dc:creator><pubDate>Mon, 10 Nov 2025 11:52:41 -0000</pubDate><guid>https://sourceforge.net0cd3f3aee38026b05a071123c5d47e8c1fcf2b3c</guid></item><item><title>#427 LibTIFF 4.6.0 dropped support for tiff2ps and tiff2pdf</title><link>https://sourceforge.net/p/gscan2pdf/bugs/427/?limit=25#9681</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;LibTIFF 4.7.0 released with tiff2ps restored.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris Mayo</dc:creator><pubDate>Sun, 22 Sep 2024 16:16:50 -0000</pubDate><guid>https://sourceforge.neta3fc3da050bfef9e5bf96864672841e9a4407602</guid></item><item><title>#427 LibTIFF 4.6.0 dropped support for tiff2ps and tiff2pdf</title><link>https://sourceforge.net/p/gscan2pdf/bugs/427/?limit=25#d78c</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;A consolidated patch is attached. It is based on Chris' work. It deals with all the code and tests. I had to delete t/135_save_tiff_as_ps_with_space.t as pstopdf crashes for me in ghostscript-10.03.1.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Petr Písař</dc:creator><pubDate>Thu, 04 Jul 2024 12:16:06 -0000</pubDate><guid>https://sourceforge.net4c3126a1ead9a98fc9172d70e52a895e3d6c6209</guid></item><item><title>#427 LibTIFF 4.6.0 dropped support for tiff2ps and tiff2pdf</title><link>https://sourceforge.net/p/gscan2pdf/bugs/427/?limit=25#1bc8</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Apparently the tools are going to return in 4.7.0:&lt;br/&gt;
&lt;a href="https://gitlab.com/libtiff/libtiff/-/blob/master/doc/rfcs/rfc2_restoring_needed_tools.rst?ref_type=heads" rel="nofollow"&gt;https://gitlab.com/libtiff/libtiff/-/blob/master/doc/rfcs/rfc2_restoring_needed_tools.rst?ref_type=heads&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris Mayo</dc:creator><pubDate>Thu, 27 Jun 2024 18:21:31 -0000</pubDate><guid>https://sourceforge.net3d664b132f6a0c69c5fdf0d74cc805b48289f808</guid></item><item><title>#427 LibTIFF 4.6.0 dropped support for tiff2ps and tiff2pdf</title><link>https://sourceforge.net/p/gscan2pdf/bugs/427/?limit=25#0fdb</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks for reviewing. That is just a quick fix to keep us going  - while looking forward to the Python. Having ported something else which draws on a Widget from GTK 3 to 4, definitely better with 4.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris Mayo</dc:creator><pubDate>Mon, 01 Jan 2024 19:36:13 -0000</pubDate><guid>https://sourceforge.net70ce5567cfc7bbdcd16542e04d8635f13fa9a4d8</guid></item><item><title>#427 LibTIFF 4.6.0 dropped support for tiff2ps and tiff2pdf</title><link>https://sourceforge.net/p/gscan2pdf/bugs/427/?limit=25#4344</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I don't see a problem with your patch. Thanks for the heads up.&lt;/p&gt;
&lt;p&gt;It is a  shame that libtiff has dropped support for most of the tools. If I had time, I'd rewrite them in Rust.&lt;/p&gt;
&lt;p&gt;FYI - ATM I am in the process of rewriting gscan2pdf in Python, as the Python support for Gtk4 is much better. I'm planning to name the rewrite "scantpaper"&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jeffrey Ratcliffe</dc:creator><pubDate>Mon, 01 Jan 2024 18:20:04 -0000</pubDate><guid>https://sourceforge.net3284f0ec198896435322063ce80020035eb39359</guid></item><item><title>LibTIFF 4.6.0 dropped support for tiff2ps and tiff2pdf</title><link>https://sourceforge.net/p/gscan2pdf/bugs/427/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Gentoo has stabilised tiff-4.6.0, therefore to stop users having run-time problems with tiff2ps not being present (despite libtiff being installed. tiffcp is still there) I am considering doing:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="gd"&gt;--- a/lib/Gscan2pdf/Dialog/Save.pm&lt;/span&gt;
&lt;span class="gi"&gt;+++ b/lib/Gscan2pdf/Dialog/Save.pm&lt;/span&gt;
&lt;span class="gu"&gt;@@ -570,10 +570,6 @@ sub add_image_type {&lt;/span&gt;
&lt;span class="w"&gt; &lt;/span&gt;    $label = Gtk3::Label-&amp;gt;new( __('Postscript backend') );
&lt;span class="w"&gt; &lt;/span&gt;    $hboxps-&amp;gt;pack_start( $label, FALSE, FALSE, 0 );
&lt;span class="w"&gt; &lt;/span&gt;    my @backends = (
&lt;span class="gd"&gt;-        [&lt;/span&gt;
&lt;span class="gd"&gt;-            'libtiff', __('LibTIFF'),&lt;/span&gt;
&lt;span class="gd"&gt;-            __('Use LibTIFF (tiff2ps) to create Postscript files from TIFF.')&lt;/span&gt;
&lt;span class="gd"&gt;-        ],&lt;/span&gt;
&lt;span class="w"&gt; &lt;/span&gt;        [
&lt;span class="w"&gt; &lt;/span&gt;            'pdf2ps',
&lt;span class="w"&gt; &lt;/span&gt;            __('Ghostscript'),
&lt;span class="gd"&gt;--- a/lib/Gscan2pdf/Document.pm&lt;/span&gt;
&lt;span class="gi"&gt;+++ b/lib/Gscan2pdf/Document.pm&lt;/span&gt;
&lt;span class="gu"&gt;@@ -4471,22 +4471,7 @@ sub _thread_save_tiff {&lt;/span&gt;
&lt;span class="w"&gt; &lt;/span&gt;            'Save file', sprintf __('Error compressing image: %s'), $error );
&lt;span class="w"&gt; &lt;/span&gt;        return;
&lt;span class="w"&gt; &lt;/span&gt;    }
&lt;span class="gd"&gt;-    if ( defined $options{options}{ps} ) {&lt;/span&gt;
&lt;span class="gd"&gt;-        $self-&amp;gt;{message} = __('Converting to PS');&lt;/span&gt;
&lt;span class="gd"&gt;-        @cmd = ( 'tiff2ps', '-3', $options{path}, '-O', $options{options}{ps} );&lt;/span&gt;
&lt;span class="gd"&gt;-        ( $status, undef, $error ) = exec_command( \@cmd, $options{pidfile} );&lt;/span&gt;
&lt;span class="gd"&gt;-        if ( $status or $error ) {&lt;/span&gt;
&lt;span class="gd"&gt;-            $logger-&amp;gt;info($error);&lt;/span&gt;
&lt;span class="gd"&gt;-            _thread_throw_error( $self, $options{uuid}, $options{page}{uuid},&lt;/span&gt;
&lt;span class="gd"&gt;-                'Save file',&lt;/span&gt;
&lt;span class="gd"&gt;-                sprintf __('Error converting TIFF to PS: %s'), $error );&lt;/span&gt;
&lt;span class="gd"&gt;-            return;&lt;/span&gt;
&lt;span class="gd"&gt;-        }&lt;/span&gt;
&lt;span class="gd"&gt;-        _post_save_hook( $options{options}{ps}, %{ $options{options} } );&lt;/span&gt;
&lt;span class="gd"&gt;-    }&lt;/span&gt;
&lt;span class="gd"&gt;-    else {&lt;/span&gt;
&lt;span class="gd"&gt;-        _post_save_hook( $options{path}, %{ $options{options} } );&lt;/span&gt;
&lt;span class="gd"&gt;-    }&lt;/span&gt;
&lt;span class="gi"&gt;+    _post_save_hook( $options{path}, %{ $options{options} } );&lt;/span&gt;

&lt;span class="w"&gt; &lt;/span&gt;    $self-&amp;gt;{return}-&amp;gt;enqueue(
&lt;span class="w"&gt; &lt;/span&gt;        {
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;If possible a review of whether that looks safe would be great. I haven't managed to crash it.&lt;/p&gt;
&lt;p&gt;I've been running the tests against it. Found that tiff2pdf in the tests can mostly be replaced by convert, here it is, in case of interest, &lt;a href="https://sourceforge.net/p/gscan2pdf/code/merge-requests/38/."&gt;https://sourceforge.net/p/gscan2pdf/code/merge-requests/38/.&lt;/a&gt; Although not &lt;code&gt;1628_import_pdf_metadata.t&lt;/code&gt; as I don't think convert can set the metadata, or &lt;code&gt;135_save_tiff_as_ps_with_space.t&lt;/code&gt; which looks like it needs tiff2ps.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris Mayo</dc:creator><pubDate>Mon, 01 Jan 2024 16:52:38 -0000</pubDate><guid>https://sourceforge.netb4c9747c00cdd19d88459b21283bb9ae9ffbb799</guid></item></channel></rss>